ConstantProcessNoise.java

  1. /* Copyright 2002-2025 CS GROUP
  2.  * Licensed to CS GROUP (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.estimation.sequential;

  18. import org.hipparchus.linear.RealMatrix;
  19. import org.orekit.propagation.SpacecraftState;

  20. /** Provider for constant process noise matrices.
  21.  * <p>
  22.  * This class always provides one initial noise matrix and
  23.  * one constant process noise matrix (both can be identical),
  24.  * regardless of states.
  25.  * </p>
  26.  * @author Luc Maisonobe
  27.  * @since 9.2
  28.  */
  29. public class ConstantProcessNoise extends AbstractCovarianceMatrixProvider {

  30.     /** Constant process noise. */
  31.     private final RealMatrix processNoiseMatrix;

  32.     /** Simple constructor.
  33.      * @param processNoiseMatrix constant process noise, used for both initial noise
  34.      * and noise between previous and current state
  35.      */
  36.     public ConstantProcessNoise(final RealMatrix processNoiseMatrix) {
  37.         this(processNoiseMatrix, processNoiseMatrix);
  38.     }

  39.     /** Simple constructor.
  40.      * @param initialNoiseMatrix initial process noise
  41.      * @param processNoiseMatrix constant process noise
  42.      */
  43.     public ConstantProcessNoise(final RealMatrix initialNoiseMatrix, final RealMatrix processNoiseMatrix) {
  44.         super(initialNoiseMatrix);
  45.         this.processNoiseMatrix = processNoiseMatrix;
  46.     }

  47.     /** {@inheritDoc} */
  48.     @Override
  49.     public RealMatrix getProcessNoiseMatrix(final SpacecraftState previous,
  50.                                             final SpacecraftState current) {
  51.         return processNoiseMatrix;
  52.     }

  53. }