Free cookie consent management tool by TermsFeed Policy Generator

Changeset 11371


Ignore:
Timestamp:
09/16/14 16:29:00 (10 years ago)
Author:
mkommend
Message:

#2233: Merged r11036 into stable.

Location:
stable
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • stable

  • stable/HeuristicLab.ExtLibs

  • stable/HeuristicLab.ExtLibs/HeuristicLab.LibSVM/3.12/LibSVM-3.12/SVM.cs

    r8607 r11371  
    26232623      clone.C = C;
    26242624      clone.nr_weight = nr_weight;
    2625       clone.weight_label = new int[weight_label.Length];
    2626       Array.Copy(weight_label, clone.weight_label, weight_label.Length);
    2627       clone.weight = new double[weight.Length];
    2628       Array.Copy(weight, clone.weight, weight.Length);
     2625      if (weight_label != null) {
     2626        clone.weight_label = new int[weight_label.Length];
     2627        Array.Copy(weight_label, clone.weight_label, weight_label.Length);
     2628      }
     2629      if (weight != null) {
     2630        clone.weight = new double[weight.Length];
     2631        Array.Copy(weight, clone.weight, weight.Length);
     2632      }
    26292633      clone.nu = nu;
    26302634      clone.p = p;
Note: See TracChangeset for help on using the changeset viewer.