N | データサンプル数\(N\)。 The number of data samples \(N\). |
d | 実数値\(d_1,\cdots,d_N\)を並べた配列。 An array composed of the real numbers \(d_1,\cdots,d_N\). |
w | 各データ\(d_1,\cdots,d_N\)の重み\(w_1,\cdots,w_N\)を並べた配列。 An array composed of the weights \(w_1,\cdots,w_N\) of individual data \(d_1,\cdots,d_N\). |
ratio | 大きい方と小さい方の計算から除外するデータサンプル数の割合\(r\)。
大きい方と小さい方からそれぞれ\(r\)の割合ずつ、
合計で\(2r\)の割合が除外される。
したがって\(0\leq r < 0.5\)とし、
かつ除外後に最低1サンプルが残らなければならない
(\(N-2N_{cut}\geq 1\))。 Ratio, \(r\), of the number of data samples removed from the largest/smallest sides of the list of the data for the calculation of the standard deviation. Since the data samples of the given ratio are removed from each of the largest/smallest sides, a total of \(2r\) are removed. The value thus must satisfy \(0\leq r < 0.5\), and in addition at least 1 data sample must be remained (i.e., \(N-2N_{cut}\geq 1\)). |
average | (\ref{eq.average})式で計算した重み付き平均。
関数calculate_weighted_average_remove_outliersの戻り値を渡せば良い。 A weighted average calculated with eq. (\ref{eq.average}); use the return value of function calculate_weighted_average_remove_outliers for this. |
9.1 (重み1.0) 8.9 (重み2.0) 7.8 (重み1.0) 6.7 (重み1.0) 5.6 (重み0.5) 4.5 (重み0.5) 3.4 (重み2.0) 2.3 (重み2.0) 1.2 (重み1.0) 0.1 (重み1.0) |
7.8 (重み1.0) 6.7 (重み1.0) 5.6 (重み0.5) 4.5 (重み0.5) 3.4 (重み2.0) 2.3 (重み2.0) |
9.1 (weight: 1.0) 8.9 (weight: 2.0) 7.8 (weight: 1.0) 6.7 (weight: 1.0) 5.6 (weight: 0.5) 4.5 (weight: 0.5) 3.4 (weight: 2.0) 2.3 (weight: 2.0) 1.2 (weight: 1.0) 0.1 (weight: 1.0) |
7.8 (weight: 1.0) 6.7 (weight: 1.0) 5.6 (weight: 0.5) 4.5 (weight: 0.5) 3.4 (weight: 2.0) 2.3 (weight: 2.0) |