TreatNull and PolyFitting Functions

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Aaron Peronto
Newbie
Newbie
Posts: 29
Joined: Wed Jun 20, 2007 12:00 am

TreatNull and PolyFitting Functions

Post by Aaron Peronto » 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.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Post by Yeray » Mon Mar 23, 2009 3:57 pm

Hi Aaron,

Another customer demanded the same recently here

I've added this to the wish list for the VCl version too (TV52013995).
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Aaron Peronto
Newbie
Newbie
Posts: 29
Joined: Wed Jun 20, 2007 12:00 am

Post by Aaron Peronto » Mon Mar 23, 2009 4:50 pm

Thanks for the quick response.

Had I searched outside of the .NET section of the forums I probably could have found the posting that you linked in your reply.

Yes, having a feature like that added to the .NET version so that any of the fitting functions could be optionally set to not use the Null points in the source series would be very very beneficial for our use of TeeChart.

Thanks again.

Post Reply