Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SampleStatistic.cs
1using System;
3
5{
9 [TypeName(TypeNameSerialization.None)]
10 [CollectionName("SampleStatistics")]
11 [Index("Id", "Start")]
12 [Index("Start", "Id")]
13 public class SampleStatistic
14 {
15 private string objectId = null;
16 private string id = null;
17 private DateTime start = DateTime.MinValue;
18 private DateTime stop = DateTime.MinValue;
19 private string unit = null;
20 private long count = 0;
21 private double? mean = null;
22 private double? median = null;
23 private double? variance = null;
24 private double? stdDev = null;
25 private double? min = null;
26 private double? max = null;
27
32 {
33 }
34
38 [ObjectId]
39 public string ObjectId
40 {
41 get => this.objectId;
42 set => this.objectId = value;
43 }
44
48 public string Id
49 {
50 get => this.id;
51 set => this.id = value;
52 }
53
57 public DateTime Start
58 {
59 get => this.start;
60 set => this.start = value;
61 }
62
66 [DefaultValueDateTimeMinValue]
67 public DateTime Stop
68 {
69 get => this.stop;
70 set => this.stop = value;
71 }
72
76 [DefaultValue(0L)]
77 public long Count
78 {
79 get => this.count;
80 set => this.count = value;
81 }
82
86 [DefaultValueNull]
87 public double? Mean
88 {
89 get => this.mean;
90 set => this.mean = value;
91 }
92
96 [DefaultValueNull]
97 public double? Variance
98 {
99 get => this.variance;
100 set => this.variance = value;
101 }
102
106 [DefaultValueNull]
107 public double? StdDev
108 {
109 get => this.stdDev;
110 set => this.stdDev = value;
111 }
112
116 [DefaultValueNull]
117 public double? Median
118 {
119 get => this.median;
120 set => this.median = value;
121 }
122
126 [DefaultValueNull]
127 public double? Min
128 {
129 get => this.min;
130 set => this.min = value;
131 }
132
136 [DefaultValueNull]
137 public double? Max
138 {
139 get => this.max;
140 set => this.max = value;
141 }
142
146 [DefaultValueStringEmpty]
147 public string Unit
148 {
149 get => this.unit;
150 set => this.unit = value;
151 }
152 }
153}
Represents collected statistical information from a small portion of time.
double? Median
Standard deviation of values
SampleStatistic()
Represents collected statistical information from a small portion of time.
double? StdDev
Standard deviation of values
TypeNameSerialization
How the type name should be serialized.