/// <summary>Gets the value.</summary> /// <value>The value.</value> public double Value(int arrayIndex = -1) { if (arrayIndex == -1) { throw new Exception("Layer number must be provided to CERES mineralisation water factor Model"); } double CNRF = Math.Exp(-0.693 * (nutrient.FOMCNR(arrayIndex) - 25) / 25); return(MathUtilities.Bound(CNRF, 0, 1)); }