TreatNull and PolyFitting Functions
Posted: Mon Mar 23, 2009 3:13 pm
I have a data series that I am trying to fit a polynomial to.
Within my data series, some of the points are null (using the .SetNull() method).
What I want is for the polynomial fit to NOT include the nulled points when calculating the fit for the data series.
Is that possible?
I have tried all of the TreatNullsStyle enumerations on the source series .TreatNull property and on the resulting curve series that I have created as well but it keeps creating the exact same poly fit for the data series when there are no null points and when half the points are defined as null in the original series.
Will the fit functions always use all of the points in the source series no matter what their Null status? If that is the case, is my only real option to copy the data from my source series into a new series but leave out the indicies that return .IsNull(index) = true and then fit the curve to the new series?
Thanks.
Within my data series, some of the points are null (using the .SetNull() method).
What I want is for the polynomial fit to NOT include the nulled points when calculating the fit for the data series.
Is that possible?
I have tried all of the TreatNullsStyle enumerations on the source series .TreatNull property and on the resulting curve series that I have created as well but it keeps creating the exact same poly fit for the data series when there are no null points and when half the points are defined as null in the original series.
Will the fit functions always use all of the points in the source series no matter what their Null status? If that is the case, is my only real option to copy the data from my source series into a new series but leave out the indicies that return .IsNull(index) = true and then fit the curve to the new series?
Thanks.