The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Calculating frequencies
Hi All
I need to calculate some frequencies.
Lets say I have an exampleSet with attributes Gender, Age and N. N is the number of people with a given gender and age. I need a new exampleSet with attributes Age and MaleFreq. Any easy method?
regards
Peter
I need to calculate some frequencies.
Lets say I have an exampleSet with attributes Gender, Age and N. N is the number of people with a given gender and age. I need a new exampleSet with attributes Age and MaleFreq. Any easy method?
regards
Peter
0
Answers
(From what I understand from your question the aggregations has already been done).
But how do I calculate MaleFreq? For a given age, It should be something like MaleFreq = N(Male)/(N(Male)+N(Female)). How is that possible?
You might also find the 'Aggregate' operator useful, curiously.
Hope so!