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
 minimum and it's row no.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

ritesh_phy

India
Posts

Posted - 04/02/2006 :  04:22:21 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Version (Select Help-->About Origin):
Operating System:

Hi everyone,

anyone, please help me.
I was trying to find the minimum value and it's row number in a data set.
I can find the minimum value. But I don't know how to find the row no.
I am using Origin C

Thanks
Ritesh

Mike Buess

USA
3037 Posts

Posted - 04/02/2006 :  08:11:19 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Use Data_sum (Origin C Language Reference > Global Functions > Statistics).

Dataset dd;
BasicStats bsStat;
Data_sum(&dd, &bsStat);
out_double("min=",bsStat.min); // minimum value
out_int("imin=",bsStat.iMin); // its row no.

Mike Buess
Origin WebRing Member

Edited by - Mike Buess on 04/02/2006 09:01:25 AM
Go to Top of Page

ritesh_phy

India
Posts

Posted - 04/02/2006 :  11:39:12 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Mike,
Thanks a lot.
Ritesh
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