Last change
on this file was
17479,
checked in by kyang, 5 years ago
|
#3057
- upload the latest version of ALPS with SMS-EMOA
- upload the related dynamic test problems (dynamic, single-objective symbolic regression), written by David Daninel.
|
File size:
872 bytes
|
Line | |
---|
1 | using HEAL.Attic;
|
---|
2 | using System;
|
---|
3 | using System.Collections.Generic;
|
---|
4 | using System.Linq;
|
---|
5 | using System.Text;
|
---|
6 | using System.Threading.Tasks;
|
---|
7 |
|
---|
8 | namespace 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.