Revision 12181 trunk/extensions/extRemoteSensing/src/es/idr/teledeteccion/principalcomponents/PCStatisticsProcess.java
PCStatisticsProcess.java | ||
---|---|---|
67 | 67 |
*/ |
68 | 68 |
public class PCStatisticsProcess implements Runnable, IIncrementable, IncrementableListener{ |
69 | 69 |
|
70 |
private double noDataValue = -99999999999999.; |
|
71 | 70 |
private Grid inputGrid = null; |
72 | 71 |
private double result[] = null; |
73 | 72 |
private Matrix coVarMatrix = null; |
... | ... | |
161 | 160 |
if (iValues>1) |
162 | 161 |
coV[i][j]=dSum/(double)(iValues); |
163 | 162 |
else |
164 |
coV[i][j]=noDataValue; |
|
165 |
|
|
163 |
//coV[i][j]=noDataValue;
|
|
164 |
coV[i][j]= inputGrid.getNoDataValue(); |
|
166 | 165 |
} |
167 | 166 |
|
168 | 167 |
if (bandCount>1) |
... | ... | |
203 | 202 |
if (iValues>1) |
204 | 203 |
coV[i][j]=dSum/(double)(iValues); |
205 | 204 |
else |
206 |
coV[i][j]=noDataValue; |
|
205 |
//coV[i][j]=noDataValue; |
|
206 |
coV[i][j]= inputGrid.getNoDataValue(); |
|
207 | 207 |
|
208 | 208 |
} |
209 | 209 |
|
... | ... | |
245 | 245 |
if (iValues>1) |
246 | 246 |
coV[i][j]=dSum/(double)(iValues); |
247 | 247 |
else |
248 |
coV[i][j]=noDataValue; |
|
249 |
|
|
248 |
//coV[i][j]=noDataValue;
|
|
249 |
coV[i][j]= inputGrid.getNoDataValue(); |
|
250 | 250 |
} |
251 | 251 |
|
252 | 252 |
if (bandCount>1) |
... | ... | |
287 | 287 |
if (iValues>1) |
288 | 288 |
coV[i][j]=dSum/(double)(iValues); |
289 | 289 |
else |
290 |
coV[i][j]=noDataValue; |
|
291 |
|
|
290 |
//coV[i][j]=noDataValue;
|
|
291 |
coV[i][j]= inputGrid.getNoDataValue(); |
|
292 | 292 |
} |
293 | 293 |
|
294 | 294 |
if (bandCount>1) |
... | ... | |
328 | 328 |
if (iValues>1) |
329 | 329 |
coV[i][j]=dSum/(double)(iValues); |
330 | 330 |
else |
331 |
coV[i][j]=noDataValue; |
|
331 |
//coV[i][j]=noDataValue; |
|
332 |
coV[i][j]= inputGrid.getNoDataValue(); |
|
332 | 333 |
|
333 | 334 |
} |
334 | 335 |
|
... | ... | |
339 | 340 |
} |
340 | 341 |
|
341 | 342 |
} // Fin tipo Double |
342 |
|
|
343 |
|
|
344 |
|
|
345 |
|
|
346 |
|
|
347 |
|
|
348 |
|
|
349 |
|
|
343 |
|
|
350 | 344 |
for (int i = 0; i < bandCount; i++) { |
351 | 345 |
for (int j = 0; j < bandCount; j++) { |
352 | 346 |
if(j<i) |
353 | 347 |
coV[i][j]=coV[j][i]; |
354 |
|
|
355 | 348 |
} |
356 | 349 |
} |
357 | 350 |
return coV; |
Also available in: Unified diff