The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 Forum for Origin C
 Frequency Count?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

dcaplan

Canada
Posts

Posted - 05/18/2005 :  1:59:10 PM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
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  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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;


Go to Top of Page

dcaplan

Canada
Posts

Posted - 05/18/2005 :  3:17:30 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks for the tip.

- David
Go to Top of Page

dcaplan

Canada
Posts

Posted - 05/18/2005 :  3:23:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 05/18/2005 :  4:35:10 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000