Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Mean Frequency
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Mar 4, 2014 10:57 PM    Post subject: Mean Frequency

Jarek,

I can not remember if this has been previously addressed or if I am missing something in the manual.
I would like to calculate the mean frequency of particular bands.

Is there an existing element for this and if not can one be implemented.


Thanks


George
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Mar 4, 2014 11:13 PM    Post subject:

See in manual about VectorToScalar's : WEIGHTED_VALUE

http://www.bioera.net/manual.html#_Toc381690456

This is hopefully what you want. That option has been added very recently.
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Mar 4, 2014 11:20 PM    Post subject:

Jarek,

Thanks. Learned two things

Weighted value

I have to update the manual I have on my computer

Thanks
snovotill



Joined: Feb 8, 2013
Posts: 80

PostPosted: Apr 2, 2014 7:32 AM    Post subject:

George, Mean Frequency is normally calculated on power rather than on voltage.
I therefore had to square the vectors before running them through WEIGHTED_VALUE.

I'm curious if you ended up doing the same if you don't mind sharing your own observations regarding this.
Stepan
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Apr 8, 2014 8:21 PM    Post subject:

Jarek,

I am trying to add the mean frequency to a design. I added vector to scalar. All functions are there except for weighted value. The are in the order that the manual lists them right down to middle index. But weighted value seems to have disappeared.

Is this an issue in3.137 or am I missing something?

Thanks

George
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Apr 8, 2014 8:30 PM    Post subject:

George, the WEIGHTED_VALUE is only available in the Float version of the element.

It probably should be also added in the scalar version, I will see if that can be done.
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Apr 8, 2014 10:30 PM    Post subject:

thanks Jarek

the last time I did this it was in a float based design It slipped my mind this time.

george

wjcroft



Joined: Jul 30, 2008
Posts: 15

PostPosted: Jul 21, 2014 10:55 PM    Post subject: Spectral Centroid == Mean Frequency ?

Jarek, hi.

Thanks for these useful additions to VectorToScalar.

Can you clarify if WEIGHTED_VALUE is the same as what is called Spectral Centroid?

http://en.wikipedia.org/wiki/Spectral_centroid

You might know that Bioexplorer implements a design object called \"Mean Frequency\", which has the description: \"Calculates the mean frequency, or center of mass of a specified frequency band using an FFT.\" So that certainly sounds like the same idea as Spectral Centroid (both descriptions use the \"center of mass\" phrase.) Which implies a weighted average.

George, is that your understanding as well?

Regards,

William Croft
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jul 22, 2014 12:35 AM    Post subject:

Yes, I think it is the same.
Reply to topic