【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.2.3.5.9 curvebase::SetLowerBound
Contents
Description
Set the lower display index of the Curve object.
Syntax
BOOL SetLowerBound( int nLower )
Parameters
- nLower
- [input] New lower display index of the Curve object
Return
Returns TRUE on successful exit and FALSE on failure.
Examples
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 ); }
Remark
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.
See Also
vectorbase::GetLowerBound, vectorbase::GetSize, vectorbase::SetSize, vectorbase::GetUpperBound, Dataset::SetUpperBound
Header to Include
origin.h