org.wdssii.polarmerger
Class NearestNeighborObservationMerger
java.lang.Object
org.wdssii.polarmerger.AbstractWeightedObservationMerger
org.wdssii.polarmerger.NearestNeighborObservationMerger
- All Implemented Interfaces:
- ObservationMerger
public class NearestNeighborObservationMerger
- extends AbstractWeightedObservationMerger
Choose the observation with maximum weight (this is a nearest neighbor approach)
- Author:
- lakshman
|
Method Summary |
void |
finishComputation(float[][][] values)
Finish computations, setting the input array to its final values. |
void |
update(float[][][] values,
int w_e,
int w_az,
int w_rn,
Observation obs,
float wt)
Update state |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MIN_WEIGHT
private static float MIN_WEIGHT
NearestNeighborObservationMerger
public NearestNeighborObservationMerger()
update
public void update(float[][][] values,
int w_e,
int w_az,
int w_rn,
Observation obs,
float wt)
- Description copied from interface:
ObservationMerger
- Update state
- Parameters:
values - the current set of values in the 3D output gridw_e - elevation indexw_az - azimuth indexw_rn - range indexobs - newObservationwt - weight of observation
finishComputation
public void finishComputation(float[][][] values)
- Description copied from interface:
ObservationMerger
- Finish computations, setting the input array to its final values.