Author |
Topic  |
|
dcaplan
Canada
Posts |
Posted - 05/18/2005 : 1:59:10 PM
|
Origin Version (Select Help-->About Origin): 7 SR1 Operating System: Win xp
Hello, are there any originC interfaces to performing frequency counting on a given column?
Thanks, - David |
|
greg
USA
1379 Posts |
Posted - 05/18/2005 : 2:07:57 PM
|
The VectorBase class has a FrequencyCount method. This fragment comes from the Help file :
// Data1_A (with data between 0 and 1) and Data1_B must exist Dataset dsA("Data1_A"), dsB("Data1_B"); vector vA(dsA); vector<int> vCounts; vA.FrequencyCount(0,1,0.05,vCounts); dsB = vCounts;
|
 |
|
dcaplan
Canada
Posts |
Posted - 05/18/2005 : 3:17:30 PM
|
Thanks for the tip.
- David |
 |
|
dcaplan
Canada
Posts |
Posted - 05/18/2005 : 3:23:37 PM
|
Oops, actually I don't think that vector.FrequencyCount() is defined in Origin 7 SR1...
Is there such thing as a labtalk command for this? (I'm new to originC/Labtalk)
Thanks, - David |
 |
|
Mike Buess
USA
3037 Posts |
Posted - 05/18/2005 : 4:35:10 PM
|
Hi David,
vectorbase::FrequencyCount is in 7.0 SR4.
Patches are free but if you can't update for some reason you might try LabTalk's histogram(dataset,inc,min,max)...
LabTalk Language Reference > Function Reference > Statistal Functions > Statistics on Datasets
Mike Buess Origin WebRing Member |
 |
|
|
Topic  |
|