dotnetCHARTING Send comments on this topic.
TrendLinePower(SeriesCollection,Double,Int32,Int32) Method
See Also 
dotnetCHARTING Namespace > ForecastEngine Class > TrendLinePower Method : TrendLinePower(SeriesCollection,Double,Int32,Int32) Method


sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
step
The distance in the x-coordinate between two adjacent extended points. Please note that this also corresponds to the distance in the x-coordinate between the highest and lowest original data point and the first (above or below) additional evaluation point.
forward
The number of additional evaluation points which are evaluated above the x-coordinates of the original given data set.
backward
The number of additional evaluation points which are evaluated below the x-coordinates of the original given data set.
Find the best fit for the function f(x) = A * pow (x, B ) where B = b and A = pow(e, a).

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function TrendLinePower( _
   ByVal sc As SeriesCollection, _
   ByVal step As Double, _
   ByVal forward As Integer, _
   ByVal backward As Integer _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim sc As SeriesCollection
Dim step As Double
Dim forward As Integer
Dim backward As Integer
Dim value As SeriesCollection
 
value = ForecastEngine.TrendLinePower(sc, step, forward, backward)
C# 
public static SeriesCollection TrendLinePower( 
   SeriesCollection sc,
   double step,
   int forward,
   int backward
)

Parameters

sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
step
The distance in the x-coordinate between two adjacent extended points. Please note that this also corresponds to the distance in the x-coordinate between the highest and lowest original data point and the first (above or below) additional evaluation point.
forward
The number of additional evaluation points which are evaluated above the x-coordinates of the original given data set.
backward
The number of additional evaluation points which are evaluated below the x-coordinates of the original given data set.

Return Value

A series where the k-th element of the array represents of k-th point (i.e. { x_k, y_k }) of the total set over which the fitted function is evaluated. The total set over which the fitted function is evaluated consists of the `backward' points, original data set points and the `forward' points.

See Also

© 2018 All Rights Reserved.