Calculate Standard Deviation

Discuss PC Developer and Web Developer projects and features here.
Post Reply
wayne_millard
Posts: 94
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Calculate Standard Deviation

Post by wayne_millard »

Hi Team

Is there a componet that will calculate standard deviation?
If not then it may be nice to have.

Thanks,
Wayne M

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Calculate Standard Deviation

Post by BenR »

Hi Wayne,

Good suggestion, we could certainly look to add this into the DSP library for you. Would you want a none DSP version too?

wayne_millard
Posts: 94
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Calculate Standard Deviation

Post by wayne_millard »

Hi Ben

Yes I would love that please. Because I do not have DSP license.

Thanks
Wayne M

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Calculate Standard Deviation

Post by BenR »

Hi Wayne,

I've had a quick go at a component for you and pushed it to the library update system. Once you have it it should appear under storage.

The source project is here if you're interested.

StandardDeviation.fcfx
(15.66 KiB) Downloaded 393 times

Let me know how you get on. If it works ok I'll try and add a DSP version too.

A minor future optimisation would be to upgrade the FIFO to a circular buffer so we don't have to keep shifting the values through the buffer but might not make a big difference for small buffers. A none float based version might also be good.

wayne_millard
Posts: 94
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Calculate Standard Deviation

Post by wayne_millard »

Hi Ben,

Thanks for putting this togeather.
i have had a quick play with it and can the number of Samples be assigned with a variable so that the sample number can be changed based on number of sample that was gathered. And not a fixed amount that is assigned to the commonent.

Thanks,
Wayne M :D

wayne_millard
Posts: 94
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Calculate Standard Deviation

Post by wayne_millard »

Hi Ben,

Is it posible to assign a veriable to number of samples and not have it fixed to the component.

Thanks,
Wayne M :D

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: Calculate Standard Deviation

Post by BenR »

Hi Wayne,

That's been added for you now. I've pushed the latest component to the library update system for you.

The latest source is here if you're interested.

StandardDeviation.fcfx
(28.4 KiB) Downloaded 400 times

wayne_millard
Posts: 94
Joined: Fri Dec 04, 2020 6:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Calculate Standard Deviation

Post by wayne_millard »

Thanks Ben.

Wayne M

Post Reply