1 | package de.uka.ipd.sdq.dsexplore.analysis; |
2 | |
3 | |
4 | public class ConfidenceInterval { |
5 | private double lowerBound; |
6 | |
7 | private double upperBound; |
8 | |
9 | private double mean; |
10 | |
11 | private double alpha; |
12 | |
13 | private long numberOfObservations; |
14 | |
15 | public ConfidenceInterval(double mean, double lowerBound, double upperBound, double alpha, long noOfObservations) { |
16 | super(); |
17 | this.mean = mean; |
18 | this.lowerBound = lowerBound; |
19 | this.upperBound = upperBound; |
20 | this.alpha = alpha; |
21 | this.numberOfObservations = noOfObservations; |
22 | } |
23 | |
24 | public long getNumberOfObservations() { |
25 | return numberOfObservations; |
26 | } |
27 | |
28 | public ConfidenceInterval(ConfidenceInterval confidence, double alpha, long noOfObservations) { |
29 | super(); |
30 | this.mean = confidence.getMean(); |
31 | this.lowerBound = confidence.getLowerBound(); |
32 | this.upperBound = confidence.getUpperBound(); |
33 | this.alpha = alpha; |
34 | this.numberOfObservations = noOfObservations; |
35 | } |
36 | |
37 | public double getLowerBound() { |
38 | return lowerBound; |
39 | } |
40 | |
41 | |
42 | public double getUpperBound() { |
43 | return upperBound; |
44 | } |
45 | |
46 | |
47 | public double getMean() { |
48 | return mean; |
49 | } |
50 | |
51 | public double getAlpha() { |
52 | return alpha; |
53 | } |
54 | |
55 | } |