|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
@Rcsid(value="$Revision: 15138 $ $Date: 2009-01-17 02:38:48 +0900 $") public interface MathUtil
数値系のユーティリティ。
計算処理を行うユーティリティクラス。
区分値として以下の区分を保持する。
入れ子のクラスの概要 | |
---|---|
static class |
MathUtil.Boundary
境界値区分(列挙型)。 |
static class |
MathUtil.InRange
範囲区分(列挙型)。 |
static class |
MathUtil.Round
丸めモード区分(列挙型)。 |
メソッドの概要 | |
---|---|
DecimalType |
averageDecimal(ListType<DecimalType> values,
int scale)
DecimalType の平均を算出する。 |
DecimalType |
averageDecimal(ListType<DecimalType> values,
int scale,
MathUtil.Round round)
DecimalType の平均を算出する。 |
DecimalType |
averageInteger(ListType<IntegerType> values,
int scale)
IntegerType の平均を算出する。 |
DecimalType |
averageInteger(ListType<IntegerType> values,
int scale,
MathUtil.Round round)
IntegerType の平均を算出する。 |
DecimalType |
sumDecimal(ListType<DecimalType> values)
DecimalType を合計する。 |
IntegerType |
sumInteger(ListType<IntegerType> values)
IntegerType を合計する。 |
メソッドの詳細 |
---|
DecimalType sumDecimal(ListType<DecimalType> values)
DecimalType
を合計する。
values
- DecimalTypeリスト
IntegerType sumInteger(ListType<IntegerType> values)
IntegerType
を合計する。
values
- IntegerTypeリスト
DecimalType averageDecimal(ListType<DecimalType> values, int scale)
DecimalType
の平均を算出する。
丸めモードにはROUND_DOWNを使用する。
values
- DecimalTypeリストscale
- スケール
DecimalType averageDecimal(ListType<DecimalType> values, int scale, MathUtil.Round round)
DecimalType
の平均を算出する。
values
- DecimalTypeリストscale
- スケールround
- 丸めモード
DecimalType averageInteger(ListType<IntegerType> values, int scale)
IntegerType
の平均を算出する。
丸めモードにはROUND_DOWNを使用する。
values
- IntegerTypeリストscale
- スケール
DecimalType averageInteger(ListType<IntegerType> values, int scale, MathUtil.Round round)
IntegerType
の平均を算出する。
values
- IntegerTypeリストscale
- スケールround
- 丸めモード
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |