Class ParamState

Inheritance Relationships

Base Type

Class Documentation

class ParamState : public lupnt::State

Labeled vector of “extra” dynamics parameters (e.g. SRP/drag coefficients, integer ambiguities) carried alongside a primary State, always expressed in frame MOON_CI.

ParamState is the parameter container threaded through Dynamics::GetParams/Dynamics::SetParams and Dynamics::PropagateWithParams, and is concatenated across sub-states by JointState::Add/JointState::GetParams so the EKF/UKF/batch filters can estimate, consider, or fix these parameters alongside the orbit/clock state.

Public Functions

inline ParamState()

Construct an empty parameter state (type Params, frame MOON_CI).

inline ParamState(int n)

Construct a zero-initialized parameter state of length n (type Params, frame MOON_CI), with placeholder names/units.

Parameters:

n – Number of parameters.

inline ParamState(const VecX &x, std::vector<std::string> names)

Construct a parameter state from values and names, inferring units from the known parameter names (see GetParamUnits).

Used e.g. by NumericalOrbitDynamics::GetParams to build the default {"bcoeff_srp", "bcoeff_drag"} parameter state.

Parameters:
  • x – Parameter values.

  • names – Parameter names (same length as x), e.g. "bcoeff_srp", "bcoeff_drag", "IntegerAmbiguity".

inline ParamState(const VecX &x, std::vector<std::string> names, std::vector<std::string> units)

Construct a parameter state from values, names, and explicit units.

Used by Dynamics::PropagateWithParams to rebuild a ParamState after propagation, preserving the original parameter names/units.

Parameters:
  • x – Parameter values.

  • names – Parameter names (same length as x).

  • units – Parameter unit strings (same length as x).

Public Static Attributes

static StateType TYPE = "Params"