SetLowerBound
Set the lower display index of the Curve object.
BOOL SetLowerBound( int nLower )
Returns TRUE on successful exit and FALSE on failure.
EX1
void curvebase_SetLowerBound_ex1(string dsName = "Book1_A") { Curve crv(dsName); crv.SetSize(10); for(int ii = 0; ii < 10; ii++) crv[ii] = ii; crv.SetLowerBound(2); crv.SetUpperBound(7); BasicStats bsStatVal; Data_sum(&crv, &bsStatVal); out_int("LowerBound is ",bsStatVal.min ); out_int("UpperBound is ",bsStatVal.max ); }
Set the lower display index of the Dataset range. Index values are 0 based offsets. SetLowerBound is supported only for Datasets (not vectors) while GetLowerBound is supported for all vectorbase derived objects. This allows for creation of more general purpose functions that can take vectorbase objects as arguments in place of Dataset objects. Essentially, the lower bound can be read but not written for vectors. SetLowerIndex is a synonym for SetLowerBound.
vectorbase::GetLowerBound, vectorbase::GetSize, vectorbase::SetSize, vectorbase::GetUpperBound, Dataset::SetUpperBound
origin.h