Search in sources :

Example 1 with ProcessEstimate

use of org.hipparchus.filtering.kalman.ProcessEstimate in project Orekit by CS-SI.

the class KalmanEstimator method estimationStep.

/**
 * Process a single measurement.
 * <p>
 * Update the filter with the new measurement by calling the estimate method.
 * </p>
 * @param observedMeasurement the measurement to process
 * @return estimated propagator
 * @throws OrekitException if an error occurred during the estimation
 */
public NumericalPropagator estimationStep(final ObservedMeasurement<?> observedMeasurement) throws OrekitException {
    try {
        final ProcessEstimate estimate = filter.estimationStep(decorate(observedMeasurement));
        processModel.finalizeEstimation(observedMeasurement, estimate);
        if (observer != null) {
            observer.evaluationPerformed(processModel);
        }
        return processModel.getEstimatedPropagator();
    } catch (MathRuntimeException mrte) {
        throw new OrekitException(mrte);
    } catch (OrekitExceptionWrapper oew) {
        throw oew.getException();
    }
}
Also used : MathRuntimeException(org.hipparchus.exception.MathRuntimeException) OrekitExceptionWrapper(org.orekit.errors.OrekitExceptionWrapper) OrekitException(org.orekit.errors.OrekitException) ProcessEstimate(org.hipparchus.filtering.kalman.ProcessEstimate)

Aggregations

MathRuntimeException (org.hipparchus.exception.MathRuntimeException)1 ProcessEstimate (org.hipparchus.filtering.kalman.ProcessEstimate)1 OrekitException (org.orekit.errors.OrekitException)1 OrekitExceptionWrapper (org.orekit.errors.OrekitExceptionWrapper)1