Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- I am trying to find the mean and variance for random generating function code shown below. I know how to calculate practically but not able to implement it can you please help me.. --- Quote End --- The implementation depends on what you really want. For example, if you want the mean and RMS as a function of time, then you can implement a digital filter. The mean is the DC component, so if you have an update rate requirement of several seconds, then that specifies your sample rate, and hence the bandwidth of your digital filter. Alternatively, you can implement the averaging in software. Before diving into an FPGA implementation, you need to determine whether that is the appropriate solution, and whether the whole solution needs to be implemented in an FPGA, or whether there is some FPGA and some processor partitioning that would make more sense. Cheers, Dave