@@ -95,14 +95,12 @@ public double getStdDeviationSampling() {
95
95
}
96
96
97
97
private void setStdDeviationBounds (List <Double > bounds ) {
98
- int i = 0 ;
99
- this .stdDeviationBoundUpper = bounds .get (i ++);
100
- this .stdDeviationBoundLower = bounds .get (i ++);
101
- this .stdDeviationBoundUpperPopulation = bounds .get (i ++);
102
- this .stdDeviationBoundLowerPopulation = bounds .get (i ++);
103
- this .stdDeviationBoundUpperSampling = bounds .get (i ++);
104
- this .stdDeviationBoundLowerSampling = bounds .get (i );
105
-
98
+ this .stdDeviationBoundUpper = bounds .get (0 );
99
+ this .stdDeviationBoundLower = bounds .get (1 );
100
+ this .stdDeviationBoundUpperPopulation = bounds .get (2 ) == null ? 0 : bounds .get (2 );
101
+ this .stdDeviationBoundLowerPopulation = bounds .get (3 ) == null ? 0 : bounds .get (3 );
102
+ this .stdDeviationBoundUpperSampling = bounds .get (4 ) == null ? 0 : bounds .get (4 );
103
+ this .stdDeviationBoundLowerSampling = bounds .get (5 ) == null ? 0 : bounds .get (5 );
106
104
}
107
105
108
106
@ Override
@@ -126,13 +124,20 @@ public double getStdDeviationBound(Bounds bound) {
126
124
}
127
125
128
126
private void setStdDeviationBoundsAsString (List <String > boundsAsString ) {
129
- int i = 0 ;
130
- this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_upper" , boundsAsString .get (i ++));
131
- this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_lower" , boundsAsString .get (i ++));
132
- this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_upper_population" , boundsAsString .get (i ++));
133
- this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_lower_population" , boundsAsString .get (i ++));
134
- this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_upper_sampling" , boundsAsString .get (i ++));
135
- this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_lower_sampling" , boundsAsString .get (i ));
127
+ this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_upper" , boundsAsString .get (0 ));
128
+ this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_lower" , boundsAsString .get (1 ));
129
+ if (boundsAsString .get (2 ) != null ) {
130
+ this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_upper_population" , boundsAsString .get (2 ));
131
+ }
132
+ if (boundsAsString .get (3 ) != null ) {
133
+ this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_lower_population" , boundsAsString .get (3 ));
134
+ }
135
+ if (boundsAsString .get (4 ) != null ) {
136
+ this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_upper_sampling" , boundsAsString .get (4 ));
137
+ }
138
+ if (boundsAsString .get (5 ) != null ) {
139
+ this .valueAsString .put (Fields .STD_DEVIATION_BOUNDS_AS_STRING + "_lower_sampling" , boundsAsString .get (5 ));
140
+ }
136
141
}
137
142
138
143
@ Override
0 commit comments