関数sequence_standard_deviation マニュアル

(The documentation of function sequence_standard_deviation)

Last Update: 2021/12/8


◆機能・用途(Purpose)

時系列データのサンプルの値の標準偏差を計算する。
Calculate the standard deviation of the sample values of a time series data.


◆形式(Format)

#include <sequence/statistics.h>
inline double sequence_standard_deviation(struct sequence seq)


◆引数(Arguments)

seq 計算に用いる時系列データを表す構造体。
A structure to represent the time series data used for the computation.


◆戻り値(Return value)

seq.valueの配列要素の標準偏差。
The standard deviation of the array components of seq.value.


◆使用例(Example)

struct sequence seq;
double sigma=sequence_standard_deviation(seq);


◆計算方法 (Computation method)

関数sequence_dispersion (sequence/statistics.h) を用いて分散を計算した後、 その\(\sqrt{\hspace{0.5em}}\)を計算することで標準偏差を求める。
The dispersion is calculated with function sequence_dispersion (sequence/statistics.h), and then the square root of the dispersion is calculated and returned.