Exemplo n.º 1
0
 @Override
 public double getSpecificStandardDeviation(ParameterOptions whichParameter)
     throws ParameterSelectionException {
   switch (whichParameter) {
     case kA:
       return standardDeviation[0];
     case t0:
       return standardDeviation[1];
     case n:
       return standardDeviation[2];
     default:
       throw new ParameterSelectionException(
           "The options for the Cubic model are kA, t0 and n.  Your selection of: "
               + whichParameter.toString()
               + " is therefore not an allowable option.");
   }
 }
Exemplo n.º 2
0
 @Override
 public boolean getIsParameterFittable(ParameterOptions whichParameter)
     throws ParameterSelectionException {
   switch (whichParameter) {
     case kA:
       return isFittable[0];
     case t0:
       return isFittable[1];
     case n:
       return isFittable[2];
     default:
       throw new ParameterSelectionException(
           "The options for the Cubic model are kA, t0 and n.  Your selection of: "
               + whichParameter.toString()
               + " is therefore not an allowable option.");
   }
 }
Exemplo n.º 3
0
 @Override
 public void setSpecificParameterBounds(Bounds specificBounds, ParameterOptions whichParam)
     throws ParameterSelectionException {
   switch (whichParam) {
     case kA:
       this.parameterBounds[0] = specificBounds;
       break;
     case t0:
       this.parameterBounds[1] = specificBounds;
       break;
     case n:
       this.parameterBounds[2] = specificBounds;
       break;
     default:
       throw new ParameterSelectionException(
           "The options for the Cubic model are kA, t0 and n.  Your selection of: "
               + whichParam.toString()
               + " is therefore not an allowable option.");
   }
 }
Exemplo n.º 4
0
 @Override
 public void setSpecificParameter(double parameter, ParameterOptions whichParam)
     throws ParameterSelectionException {
   switch (whichParam) {
     case kA:
       kA = parameter;
       parameters[0] = kA;
       break;
     case t0:
       t0 = parameter;
       parameters[1] = t0;
       break;
     case n:
       n = parameter;
       parameters[2] = n;
       break;
     default:
       throw new ParameterSelectionException(
           "The options for the Cubic model are kA, t0 and n.  Your selection of: "
               + whichParam.toString()
               + " is therefore not an allowable option.");
   }
 }