DataSharp/Data/Analysis/SupportVectorMachine.cs
/// <summary>
/// Clips given multiplier into the specified range.
/// </summary>
/// <param name="multiplier">The multiplier to be clipped.</param>
/// <param name="upperLimit">Upper limit of the specified range.</param>
/// <param name="lowerLimit">Lower limit of the specified range.</param>
/// <returns></returns>
Clips given multiplier into the specified range.
Clips given multiplier into the specified range .
private double Clip(double multiplier, double upperLimit, double lowerLimit)
        {
            if (multiplier > upperLimit)
                multiplier = upperLimit;
            if (multiplier < lowerLimit)
                multiplier = lowerLimit;
            return multiplier;
        }
private double Clip ( double multiplier , double upperLimit , double lowerLimit ) { if ( multiplier > upperLimit ) multiplier = upperLimit ; if ( multiplier < lowerLimit ) multiplier = lowerLimit ; return multiplier ; }
Clips given multiplier into the specified range.
Clips given multiplier into the specified range .
None
multiplier
double
The multiplier to be clipped.
The multiplier to be clipped .
upperLimit
double
Upper limit of the specified range.
Upper limit of the specified range .
lowerLimit
double
Lower limit of the specified range.
Lower limit of the specified range .