<< Click to Display Table of Contents >>
Manual > Control Reference > Route > Route Methods >
Calculate the correlation coefficient.
syntax
Math.Correl(
val
)
Parameters
Type:
Number
The source data, which must be a two-dimensional array.
Return Value
The result value.
Explanation
Example
Find the correlation coefficient between c(3,2,4,5,6) and c(9,7,12,15,17).
var vData = c(c(3, 2, 4, 5, 6), c(9, 7, 12, 15, 17)); var vResult = ::Math.Correl(vData);
Supported
○
Script Action
Can be used in server script Ver2 actions
Browser script
Can be used in browser scripts
Calculation formula syntax
Can be used in expression syntax (e.g. bind syntax)
reference
Math.Abs
Math.Ceil
Math.Floor
Math.Ave
Math.Sum
Math.Max
Math.Min
Math.Median
Math.Mode
Math.Random
Math.Log
Math.Log10
Math.Pow
Math.Sqrt
Math.Nthroots
Math.AddingUp
Math.StDev
Math.Correl
Math.LineSt
Math.Sin
Math.Cos
Math.Tan
Math.Asin
Math.Acos
Math.Atan
Math.Exp
Math.LinearTrans (Math.LT)
Math.PowerFactorTrans (Math.PT)
Math.Summary
Math.Round