<< Click to Display Table of Contents >>
マニュアル > コントロールリファレンス > ルート > ルートメソッド >
サマリー(合計値、平均値、最大値、最小値)を求める。
構文
Math.Summary(
type,
value1
[,value2]
[,value3]
...
[,valueX]
)
パラメータ
type
型:
文字
求めたいサマリーのタイプ
"sum" - 合計値
"ave" - 平均値
"max" - 最大値
"min" - 最小値
value[x]
数値
元データ。配列で指定可能。また、引数を末尾に列挙することも可能。(列挙できる引数の数には制限はありません。)
戻り値
結果値。
例
以下は1から5の合計を求めます
var vSum = Math.Summary ("sum", 1, 2, 3, 4, 5);
以下は1から10の平均を求めます
var vAve = Math.Summary ("ave", c(1, 2, 3, 4, 5), 6, 7, c(8, 9, 10));
サポート対象
○
スクリプトアクション
サーバのスクリプトVer2アクションで使用可能
ブラウザスクリプト
ブラウザのスクリプトにて使用可能
演算式構文
演算式構文(バインド書式など)にて使用可能
参照
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