Elliptic Filter Code [closed] - c++

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I'm needing a elliptic filter code in c or c++, this code should filter a float input array.
Does anyone there have any code to do it?
Best

If you use e.g. MATLAB to design your filter (using e.g. the ellip function), you can take the resulting filter coefficients and very easily implement the filter in software (it's just a matter of multiplying the float values by the coefficients and following the rational filter equation).

Related

Census transform vs Mutual Information [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I need to use an algorithm for stereo processing images (or frames – as I intend to use it for a real-time application written in C/C++) and I was thinking about: Census transform algorithm and matching cost calculation based on Mutual Information as my best options, but as far as I know, Census transform doesn’t give quite as accurate results as Mutual Information, and Mutual Information is more expensive.
Which one would be more suitable for my case?

Does Eigen have solution for repair non-positive defined covariance matrix [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Does Eigen contains an algorithm for solving nearest correlation matrix problems?
You can use the SelfAdjointEigenSolver to decompose your non-positive definite matrix, edit the negative eigenvalues to something slightly positive and (manually) re-compose the matrix.

Turning a string that contains a equation into an integer [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would like to be able to convert a string such as "(5+6)*6" and get the resulting integer from that equation. It is important that it starts out as a string.
You can use library fastmathparser for c++.
In link is example how use this library.
If you really want write alone this parser, I recomended use Shunting-yard algorithm

how to implement any genetic ant finding food in Push,Clojush,Clojure? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am trying to use Push,Clojush,Clojure to implement an ant finding food in a 2d map, but I am not sure how to represent map? Could someone give me a example? Thank you.
You have a whole implementation of an ant simulation in Clojure at https://github.com/juliangamble/clojure-ants-simulation
To your specific question, it uses a vector of vectors:
https://github.com/juliangamble/clojure-ants-simulation/blob/master/src/ants.clj#L36

different between CRC8 , CRC16 and CRC32? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I would like to know the difference and how to choose the polynomial generator for different crc ?
And in some C code they have look up table to compute crc and some of them do it by xor truth table. but in both the cases it is 1byte data array. Its confusing . Could somebody explain this as well ?
Thanks.!