BrightSide Workbench Full Report + Source Code
Aggregates.java
Go to the documentation of this file.
1
/*
2
* TurrĂ³ i Cutiller Foundation. License notice.
3
* Copyright (C) 2020 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4
*
5
* This program is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU Affero General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU Affero General Public License for more details.
14
*
15
* You should have received a copy of the GNU Affero General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
package
org.turro.indicator;
20
25
public
class
Aggregates
{
26
27
private
final
long
count;
28
private
final
double
min, max, average;
29
private
double
median;
30
31
public
Aggregates
(
long
count,
double
min,
double
max,
double
average) {
32
this.count = count;
33
this.min = min;
34
this.max = max;
35
this.average = average;
36
}
37
38
public
void
setMedian
(
double
median) {
39
this.median = median;
40
}
41
42
public
long
getCount
() {
43
return
count;
44
}
45
46
public
double
getMin
() {
47
return
min;
48
}
49
50
public
double
getMax
() {
51
return
max;
52
}
53
54
public
double
getAverage
() {
55
return
average;
56
}
57
58
public
double
getMedian
() {
59
return
median;
60
}
61
62
}
org.turro.indicator.Aggregates
Definition:
Aggregates.java:25
org.turro.indicator.Aggregates.setMedian
void setMedian(double median)
Definition:
Aggregates.java:38
org.turro.indicator.Aggregates.getCount
long getCount()
Definition:
Aggregates.java:42
org.turro.indicator.Aggregates.getMedian
double getMedian()
Definition:
Aggregates.java:58
org.turro.indicator.Aggregates.getAverage
double getAverage()
Definition:
Aggregates.java:54
org.turro.indicator.Aggregates.getMin
double getMin()
Definition:
Aggregates.java:46
org.turro.indicator.Aggregates.getMax
double getMax()
Definition:
Aggregates.java:50
org.turro.indicator.Aggregates.Aggregates
Aggregates(long count, double min, double max, double average)
Definition:
Aggregates.java:31
TurroProjects
Public
Elephant
elephant-jpa
src
main
java
org
turro
indicator
Aggregates.java
Generated on Tue Mar 12 2024 07:01:17 for BrightSide by
1.9.1