コード例 #1
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + _meanCalculator.hashCode();
   result = prime * result + _stdCalculator.hashCode();
   return result;
 }
コード例 #2
0
 @Override
 public Double evaluate(final NormalVaRParameters parameters, final T... data) {
   Validate.notNull(parameters, "parameters");
   Validate.notNull(data, "data");
   double z = parameters.getZ();
   double mult = parameters.getTimeScaling();
   return z * mult * _stdCalculator.evaluate(data) - mult * mult * _meanCalculator.evaluate(data);
 }