Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/11 16:33:01 (13 years ago)
Author:
sforsten
Message:

#1669: different kinds of distribution have been implemented for the data generation. It hasn't been tested yet.

Location:
branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/DistributionGenerator
Files:
5 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/RegressionBenchmarks/HeuristicLab.Problems.DataAnalysis.Benchmarks/3.4/DistributionGenerator/Distribution.cs

    r6968 r6973  
    2121
    2222using System;
     23using HeuristicLab.Common;
    2324using HeuristicLab.Core;
    2425
    2526namespace HeuristicLab.Problems.DataAnalysis.Benchmarks {
     27
     28  public enum DistributionType { Training, Test };
     29
    2630  public abstract class Distribution : NamedItem {
     31
     32    protected double start;
     33    protected double end;
     34
     35    protected Distribution(Distribution original, Cloner cloner)
     36      : base(original, cloner) {
     37      start = original.start;
     38      end = original.end;
     39    }
     40
     41    public Distribution(double start, double end) {
     42      this.start = start;
     43      this.end = end;
     44    }
    2745
    2846    public abstract Double Next();
Note: See TracChangeset for help on using the changeset viewer.