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
18 package org.orekit.estimation.common;
19
20 /** Container for base weights.
21 * @author Luc Maisonobe
22 */
23 class Weights {
24
25 /** Base weight for range measurements. */
26 private final double rangeBaseWeight;
27
28 /** Base weight for range rate measurements. */
29 private final double rangeRateBaseWeight;
30
31 /** Base weight for azimuth-elevation measurements. */
32 private final double[] azElBaseWeight;
33
34 /** Base weight for PV measurements. */
35 private final double pvBaseWeight;
36
37 /** Simple constructor.
38 * @param rangeBaseWeight base weight for range measurements
39 * @param rangeRateBaseWeight base weight for range rate measurements
40 * @param azElBaseWeight base weight for azimuth-elevation measurements
41 * @param pvBaseWeight base weight for PV measurements
42 */
43 Weights(final double rangeBaseWeight,
44 final double rangeRateBaseWeight,
45 final double[] azElBaseWeight,
46 final double pvBaseWeight) {
47 this.rangeBaseWeight = rangeBaseWeight;
48 this.rangeRateBaseWeight = rangeRateBaseWeight;
49 this.azElBaseWeight = azElBaseWeight.clone();
50 this.pvBaseWeight = pvBaseWeight;
51 }
52
53 /** Get base weight for range measurements.
54 * @return base weight for range measurements
55 */
56 public double getRangeBaseWeight() {
57 return rangeBaseWeight;
58 }
59
60 /** Get base weight for range rate measurements.
61 * @return base weight for range rate measurements
62 */
63 public double getRangeRateBaseWeight() {
64 return rangeRateBaseWeight;
65 }
66
67 /** Get base weight for azimuth-elevation measurements.
68 * @return base weight for azimuth-elevation measurements
69 */
70 public double[] getAzElBaseWeight() {
71 return azElBaseWeight.clone();
72 }
73
74 /** Get base weight for PV measurements.
75 * @return base weight for PV measurements
76 */
77 public double getPVBaseWeight() {
78 return pvBaseWeight;
79 }
80
81 }