public int ComputeProbabilisticAngle(int wetness) { double std = Std * (1 + Math.Min(WetnessFactor * wetness + Math.Abs(Angle / 90) * AngleFactor, 1)); return(ProbabilityHelper.SampleFromNormal(Angle / 90, std) * 90); }
public int ComputeProbabilisticDistance(int wetness) { double std = Std * (1 + Math.Min(WetnessFactor * wetness + Distance * DistanceFactor, 1)); return(ProbabilityHelper.SampleFromNormal(Distance, std)); }