Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/28/12 13:11:15 (12 years ago)
Author:
mkommend
Message:

#1919: Refactored calculation of thresholds for SymbolicDiscriminantFunctionClassficationModels and removed the automatic recalculation of thresholds during solution creation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Common/3.3/EnumerableStatisticExtensions.cs

    r7259 r8531  
    105105
    106106    public static IEnumerable<double> LimitToRange(this IEnumerable<double> values, double min, double max) {
     107      if (min > max) throw new ArgumentException(string.Format("Minimum {0} is larger than maximum {1}.", min, max));
    107108      foreach (var x in values) {
    108109        if (double.IsNaN(x)) yield return (max + min) / 2.0;
Note: See TracChangeset for help on using the changeset viewer.