TCustomFittingFunction.LastPoint

TCustomFittingFunction.LastPoint
TCustomFittingFunction

property LastPoint: Integer;

Unit
CurvFitt

Description
Default Value: -1

With FirstPoint and LastPoint properties you can restrict the subset of points TCurveFittingFunction will use to calculate the polynomy coefficients and it's point values.

By default is -1, meaning all datasource points up to the last one will be used to perform the calculation.

The TCurveFittingFunction1.CheckDataSource method must be called after setting FirstPoint and LastPoint properties, forcing TCurveFittingFunction to recalculate again all point values.