Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3057_DynamicALPS/TestProblems/oesr-alps-master/HeuristicLab.Algorithms.OESRALPS/DriftDetection/Bucket.cs

Last change on this file was 17479, checked in by kyang, 5 years ago

#3057

  1. upload the latest version of ALPS with SMS-EMOA
  2. upload the related dynamic test problems (dynamic, single-objective symbolic regression), written by David Daninel.
File size: 872 bytes
Line 
1using HEAL.Attic;
2using System;
3using System.Collections.Generic;
4using System.Linq;
5using System.Text;
6using System.Threading.Tasks;
7
8namespace HeuristicLab.Algorithms.OESRALPS.DriftDetection
9{
10    [StorableType("114CE0E4-A88F-44A1-A2D0-92F4D8252C04")]
11    public class Bucket
12    {
13        public Bucket()
14        {
15        }
16
17        public Bucket(double total, double variance, int numElements)
18        {
19            Total = total;
20            Variance = variance;
21            NumElements = numElements;
22        }
23
24        [Storable]
25        public double Total { get; set; }
26        [Storable]
27        public double Variance { get; set; }
28        [Storable]
29        public int NumElements { get; set; }
30
31        public double Mean {
32            get {
33                return Total / NumElements;
34            }
35        }
36    }
37}
Note: See TracBrowser for help on using the repository browser.