Math.LineSt

<< Click to Display Table of Contents >>

Manual > Control Reference > Route > Route Methods >

Math.LineSt


 

Calculate the slope and offset of the straight line obtained by linear regression analysis (least squares method).

 


syntax

Math.LineSt(

         val

         )

 


Parameters

 

val

 

Type:

Number

 

The source data, which must be a two-dimensional array.

 

Return Value

 

 

Type:

Number

 

The results are returned as a one-dimensional, two-element array, where element 0 is the slope and element 1 is the offset.

 


hmtoggle_plus1Explanation

 

hmtoggle_plus1Example

 


Supported


Script Action

Browser script

Calculation formula syntax

 

 


reference