sample.h
Go to the documentation of this file.
74 void InitSampleFromBox(unsigned int sID,boolean *systemVar,Tbox *b,unsigned int boxID,Tsample *s);
unsigned int GetSampleDim(Tsample *s) Returns the dimensionality of the space where the sample is defined. Definition: sample.c:69 double GetSampleDistance(Tsample *s1, Tsample *s2) Computes the Euclidean distance between two samples. Definition: sample.c:106 double GetSampleValue(unsigned int n, Tsample *s) Gets the value for a given dimension of the sample. Definition: sample.c:79 unsigned int GetSampleBoxID(Tsample *s) Gets the identifier of the box that includes the sample. Definition: sample.c:91 void InitSampleFromBox(unsigned int sID, boolean *systemVar, Tbox *b, unsigned int boxID, Tsample *s) Constructor. Definition: sample.c:29 void SaveSample(FILE *f, Tsample *s) Saves the information of the sample in a file. Definition: sample.c:142 void SetSampleBoxID(unsigned int boxID, Tsample *s) Changes the identifier of the box to which the sample is linked. Definition: sample.c:101 Definition of the Tbox type and the associated functions. void InitSample(unsigned int sID, unsigned int n, double *v, unsigned int boxID, Tsample *s) Constructor. Definition: sample.c:16 Definition of the Tvector type and the associated functions. |
Follow us!