`[C#] ` | `public ArrayMath lowess2(double[] b [, double smoothness [, int iteration ]]);` |

`[VB] ` | `Public Function lowess2(b As Double() [, smoothness As Double [, iteration As Integer ]]) As ArrayMath` |

ChartDirector 6.2 (.NET Edition)

ArrayMath.lowess2

Usage

`[C#] ` | `public ArrayMath lowess2(double[] b [, double smoothness [, int iteration ]]);` |

`[VB] ` | `Public Function lowess2(b As Double() [, smoothness As Double [, iteration As Integer ]]) As ArrayMath` |

Description

Fits a curve through the data points in the ArrayMath object using the LOWESS algorithm, where the spacing of the data points is supplied by the given array.

Please refer to ArrayMath.lowess for a brief description of the LOWESS algorithm.

In this method, each element of the ArrayMath object will be replaced by the corresponding value computed using the LOWESS algorithm.

Please refer to ArrayMath.lowess for a brief description of the LOWESS algorithm.

In this method, each element of the ArrayMath object will be replaced by the corresponding value computed using the LOWESS algorithm.

Arguments

Argument | Default | Description |
---|---|---|

b | (Mandatory) | An array of numbers providing the x coordinates of the data points in the ArrayMath object. |

smoothness | 0.25 | The smoothness factor. It must be between 0 - 1. It is the portion of points used in finding the n nearest points. In other words, n = smoothness * no_of_points. A larger value will result in a smoother the curve. A smaller value will result in the curve tracking the data points better. For LOWESS to have any smoothing effect at all, n must be at least 3. You may need to use a large smoothness factor if you only have a few data points. |

iteration | 0 | The number of additional iteration used in the LOWESS algorithm. Unless your data is extremely noisy, in most case no additional iteration is necessary. |

Return Value

The current ArrayMath object.

© 2017 Advanced Software Engineering Limited. All rights reserved.