Revision 2311 org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/store/properties/SimpleProviderStatistics.java

View differences:

SimpleProviderStatistics.java
148 148
		this.variance = variance;
149 149
	}
150 150
	
151
	/*
152
	 * (non-Javadoc)
153
	 * @see org.gvsig.raster.hierarchy.IStatistics#getMin()
154
	 */
155 151
	public double[] getMin() {
156 152
		return min;
157 153
	}
158 154
	
159
	/*
160
	 * (non-Javadoc)
161
	 * @see org.gvsig.raster.hierarchy.IStatistics#getMax()
162
	 */
163 155
	public double[] getMax() {
164 156
		return max;
165 157
	}
166 158
	
167
	/*
168
	 * (non-Javadoc)
169
	 * @see org.gvsig.raster.hierarchy.IStatistics#getSecondMax()
170
	 */
171 159
	public double[] getSecondMax() {
172 160
		return secondMax;
173 161
	}
174 162
	
175
	/*
176
	 * (non-Javadoc)
177
	 * @see org.gvsig.raster.hierarchy.IStatistics#getSecondMin()
178
	 */
179 163
	public double[] getSecondMin() {
180 164
		return secondMin;
181 165
	}
182 166
	
183
	/*
184
	 * (non-Javadoc)
185
	 * @see org.gvsig.raster.hierarchy.IStatistics#getMinRGB()
186
	 */
187 167
	public double[] getMinByteUnsigned() {
188 168
		return minByteUnsigned;
189 169
	}
190 170
	
191
	/*
192
	 * (non-Javadoc)
193
	 * @see org.gvsig.raster.hierarchy.IStatistics#getMaxRGB()
194
	 */
195 171
	public double[] getMaxByteUnsigned() {
196 172
		return maxByteUnsigned;
197 173
	}
198 174
	
199
	/*
200
	 * (non-Javadoc)
201
	 * @see org.gvsig.raster.hierarchy.IStatistics#getSecondMaxRGB()
202
	 */
203 175
	public double[] getSecondMaxByteUnsigned() {
204 176
		return secondMaxByteUnsigned;
205 177
	}
206 178
	
207
	/*
208
	 * (non-Javadoc)
209
	 * @see org.gvsig.raster.hierarchy.IStatistics#getSecondMinRGB()
210
	 */
211 179
	public double[] getSecondMinByteUnsigned() {
212 180
		return secondMinByteUnsigned;
213 181
	}
214 182
	
215
	/*
216
	 * (non-Javadoc)
217
	 * @see org.gvsig.fmap.dal.coverage.dataset.Statistics#getMaximun()
218
	 */
219 183
	public double getMaximun() {
220 184
		double m = Double.NEGATIVE_INFINITY;
221 185
		for (int i = 0; i < max.length; i++)
......
223 187
		return m;
224 188
	}
225 189
	
226
	/*
227
	 * (non-Javadoc)
228
	 * @see org.gvsig.fmap.dal.coverage.dataset.Statistics#getMinimun()
229
	 */
230 190
	public double getMinimun() {
231 191
		double m = Double.MAX_VALUE;
232 192
		for (int i = 0; i < min.length; i++)
......
234 194
		return m;
235 195
	}
236 196

  
237
	/*
238
	 * (non-Javadoc)
239
	 * @see org.gvsig.fmap.dal.coverage.dataset.Statistics#getMaximunByteUnsigned()
240
	 */
241 197
	public double getMaximunByteUnsigned() {
242 198
		double m = Double.NEGATIVE_INFINITY;
243 199
		for (int i = 0; i < maxByteUnsigned.length; i++)
......
245 201
		return m;
246 202
	}
247 203

  
248
	/*
249
	 * (non-Javadoc)
250
	 * @see org.gvsig.fmap.dal.coverage.dataset.Statistics#getMinimunByteUnsigned()
251
	 */
252 204
	public double getMinimunByteUnsigned() {
253 205
		double m = Double.MAX_VALUE;
254 206
		for (int i = 0; i < minByteUnsigned.length; i++)
......
256 208
		return m;
257 209
	}
258 210

  
259
	/*
260
	 * (non-Javadoc)
261
	 * @see org.gvsig.raster.hierarchy.IStatistics#getMean()
262
	 */
263 211
	public double[] getMean() {
264 212
		return mean;
265 213
	}
266 214

  
267
	/*
268
	 * (non-Javadoc)
269
	 * @see org.gvsig.raster.hierarchy.IStatistics#getVariance()
270
	 */
271 215
	public double[] getVariance() {
272 216
		return variance;
273 217
	}
274 218
	
275
	/*
276
	 * (non-Javadoc)
277
	 * @see org.gvsig.raster.hierarchy.IStatistics#getBandCount()
278
	 */
279 219
	public int getBandCount() {
280 220
		return this.bandCount;
281 221
	}
......
288 228
		this.bandCount = bandCount;
289 229
	}
290 230
	
291
	/*
292
	 * (non-Javadoc)
293
	 * @see org.gvsig.raster.hierarchy.IStatistics#calcFullStatistics(double)
294
	 */
295 231
	public void calculate(double scale) throws FileNotOpenException, RasterDriverException, ProcessInterruptedException {
296 232
		if (provider == null)
297 233
			return;
......
557 493
		return null;
558 494
	}
559 495
	
560
	/*
561
	 * (non-Javadoc)
562
	 * @see org.gvsig.raster.hierarchy.IStatistics#isCalculated()
563
	 */
564 496
	public boolean isCalculated() {
565 497
		return calculated;
566 498
	}
......
573 505
		calculated = calc;
574 506
	}
575 507
	
576
	/*
577
	 * (non-Javadoc)
578
	 * @see org.gvsig.raster.hierarchy.IStatistics#setTailTrimValue(double, java.lang.Object)
579
	 */
580 508
	public void setTailTrimValue(double percent, Object valueByBand){
581 509
		tailTrim.put(percent + "", valueByBand);
582 510
		for (int i = 0; i < tailTrimValues.size(); i++) {
......
588 516
		tailTrimValues.add(percent + "");
589 517
	}
590 518
	
591
	/*
592
	 * (non-Javadoc)
593
	 * @see org.gvsig.raster.hierarchy.IStatistics#getTailTrimValue(double)
594
	 */
595 519
	public Object getTailTrimValue(double percent){
596 520
		return tailTrim.get(percent + "");
597 521
	}
598 522
	
599
	/*
600
	 *  (non-Javadoc)
601
	 * @see org.gvsig.raster.shared.IStatistics#getTailTrimValue(int)
602
	 */
603 523
	public Object[] getTailTrimValue(int pos) {
604 524
		return new Object[] { Double.valueOf(Double.parseDouble(tailTrimValues.get(pos) + "")), tailTrim.get(tailTrimValues.get(pos)) };
605 525
	}
606 526
	
607
	/*
608
	 *  (non-Javadoc)
609
	 * @see org.gvsig.raster.shared.IStatistics#getTailTrimCount()
610
	 */
611 527
	public int getTailTrimCount() {
612 528
		return tailTrimValues.size();
613 529
	}
......
732 648
		return s;
733 649
	}
734 650
	
735
	/*
736
	 * (non-Javadoc)
737
	 * @see org.gvsig.fmap.dal.coverage.store.props.Statistics#cloneStatistics()
738
	 */
739 651
	public Statistics cloneStatistics() {
740 652
		SimpleProviderStatistics s = new SimpleProviderStatistics(provider);
741 653
		return super.cloneStatistics(s);

Also available in: Unified diff