ootk 6.0.0-rc.4 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +29551 -0
- package/dist/main.d.cts +16961 -0
- package/dist/main.d.ts +16940 -32
- package/dist/main.js +29243 -35
- package/package.json +38 -25
- package/.claude/PROMPT.md +0 -13
- package/.claude/hooks/post-tool-use.ts +0 -33
- package/.claude/hooks/user-prompt-submit.ts +0 -138
- package/.claude/settings.local.json +0 -21
- package/.claude/skill-rules.json +0 -11
- package/.claude/skills/ootk-dev/SKILL.md +0 -16
- package/ADVANCED_FEATURES_GUIDE.md +0 -1025
- package/CHANGELOG.md +0 -511
- package/CLAUDE.md +0 -67
- package/FUTURE-WORK.md +0 -325
- package/dist/body/CelestialBody.d.ts +0 -155
- package/dist/body/CelestialBody.js +0 -207
- package/dist/body/CelestialBody.js.map +0 -1
- package/dist/body/CelestialBodyType.d.ts +0 -41
- package/dist/body/CelestialBodyType.js +0 -55
- package/dist/body/CelestialBodyType.js.map +0 -1
- package/dist/body/Earth.d.ts +0 -68
- package/dist/body/Earth.js +0 -198
- package/dist/body/Earth.js.map +0 -1
- package/dist/body/EphemerisBody.d.ts +0 -153
- package/dist/body/EphemerisBody.js +0 -235
- package/dist/body/EphemerisBody.js.map +0 -1
- package/dist/body/MoonBody.d.ts +0 -200
- package/dist/body/MoonBody.js +0 -414
- package/dist/body/MoonBody.js.map +0 -1
- package/dist/body/NutationAngles.d.ts +0 -38
- package/dist/body/NutationAngles.js +0 -24
- package/dist/body/NutationAngles.js.map +0 -1
- package/dist/body/PlanetBody.d.ts +0 -130
- package/dist/body/PlanetBody.js +0 -293
- package/dist/body/PlanetBody.js.map +0 -1
- package/dist/body/PrecessionAngles.d.ts +0 -29
- package/dist/body/PrecessionAngles.js +0 -24
- package/dist/body/PrecessionAngles.js.map +0 -1
- package/dist/body/SolarSystem.d.ts +0 -124
- package/dist/body/SolarSystem.js +0 -218
- package/dist/body/SolarSystem.js.map +0 -1
- package/dist/body/SunBody.d.ts +0 -253
- package/dist/body/SunBody.js +0 -433
- package/dist/body/SunBody.js.map +0 -1
- package/dist/body/index.d.ts +0 -36
- package/dist/body/index.js +0 -39
- package/dist/body/index.js.map +0 -1
- package/dist/comm/Antenna.d.ts +0 -112
- package/dist/comm/Antenna.js +0 -173
- package/dist/comm/Antenna.js.map +0 -1
- package/dist/comm/Beacon.d.ts +0 -141
- package/dist/comm/Beacon.js +0 -268
- package/dist/comm/Beacon.js.map +0 -1
- package/dist/comm/CommTypes.d.ts +0 -181
- package/dist/comm/CommTypes.js +0 -115
- package/dist/comm/CommTypes.js.map +0 -1
- package/dist/comm/CommunicationDevice.d.ts +0 -115
- package/dist/comm/CommunicationDevice.js +0 -142
- package/dist/comm/CommunicationDevice.js.map +0 -1
- package/dist/comm/Receiver.d.ts +0 -139
- package/dist/comm/Receiver.js +0 -219
- package/dist/comm/Receiver.js.map +0 -1
- package/dist/comm/Transmitter.d.ts +0 -136
- package/dist/comm/Transmitter.js +0 -273
- package/dist/comm/Transmitter.js.map +0 -1
- package/dist/comm/Transponder.d.ts +0 -154
- package/dist/comm/Transponder.js +0 -281
- package/dist/comm/Transponder.js.map +0 -1
- package/dist/comm/index.d.ts +0 -30
- package/dist/comm/index.js +0 -26
- package/dist/comm/index.js.map +0 -1
- package/dist/conjunction/CatalogScreener.d.ts +0 -134
- package/dist/conjunction/CatalogScreener.js +0 -213
- package/dist/conjunction/CatalogScreener.js.map +0 -1
- package/dist/conjunction/ConjunctionAssessment.d.ts +0 -149
- package/dist/conjunction/ConjunctionAssessment.js +0 -288
- package/dist/conjunction/ConjunctionAssessment.js.map +0 -1
- package/dist/conjunction/ConjunctionEvent.d.ts +0 -110
- package/dist/conjunction/ConjunctionEvent.js +0 -154
- package/dist/conjunction/ConjunctionEvent.js.map +0 -1
- package/dist/conjunction/CovarianceRealism.d.ts +0 -189
- package/dist/conjunction/CovarianceRealism.js +0 -348
- package/dist/conjunction/CovarianceRealism.js.map +0 -1
- package/dist/conjunction/ProbabilityOfCollision.d.ts +0 -102
- package/dist/conjunction/ProbabilityOfCollision.js +0 -242
- package/dist/conjunction/ProbabilityOfCollision.js.map +0 -1
- package/dist/conjunction/ScreeningFilter.d.ts +0 -112
- package/dist/conjunction/ScreeningFilter.js +0 -160
- package/dist/conjunction/ScreeningFilter.js.map +0 -1
- package/dist/conjunction/index.d.ts +0 -22
- package/dist/conjunction/index.js +0 -23
- package/dist/conjunction/index.js.map +0 -1
- package/dist/constellation/ConstellationGenerator.d.ts +0 -137
- package/dist/constellation/ConstellationGenerator.js +0 -270
- package/dist/constellation/ConstellationGenerator.js.map +0 -1
- package/dist/constellation/index.d.ts +0 -17
- package/dist/constellation/index.js +0 -18
- package/dist/constellation/index.js.map +0 -1
- package/dist/coordinate/ClassicalElements.d.ts +0 -170
- package/dist/coordinate/ClassicalElements.js +0 -334
- package/dist/coordinate/ClassicalElements.js.map +0 -1
- package/dist/coordinate/EquinoctialElements.d.ts +0 -114
- package/dist/coordinate/EquinoctialElements.js +0 -172
- package/dist/coordinate/EquinoctialElements.js.map +0 -1
- package/dist/coordinate/FormatTle.d.ts +0 -95
- package/dist/coordinate/FormatTle.js +0 -188
- package/dist/coordinate/FormatTle.js.map +0 -1
- package/dist/coordinate/Geodetic.d.ts +0 -110
- package/dist/coordinate/Geodetic.js +0 -164
- package/dist/coordinate/Geodetic.js.map +0 -1
- package/dist/coordinate/Hill.d.ts +0 -49
- package/dist/coordinate/Hill.js +0 -222
- package/dist/coordinate/Hill.js.map +0 -1
- package/dist/coordinate/ITRF.d.ts +0 -75
- package/dist/coordinate/ITRF.js +0 -135
- package/dist/coordinate/ITRF.js.map +0 -1
- package/dist/coordinate/J2000.d.ts +0 -65
- package/dist/coordinate/J2000.js +0 -120
- package/dist/coordinate/J2000.js.map +0 -1
- package/dist/coordinate/RIC.d.ts +0 -64
- package/dist/coordinate/RIC.js +0 -79
- package/dist/coordinate/RIC.js.map +0 -1
- package/dist/coordinate/RelativeState.d.ts +0 -70
- package/dist/coordinate/RelativeState.js +0 -79
- package/dist/coordinate/RelativeState.js.map +0 -1
- package/dist/coordinate/StateVector.d.ts +0 -76
- package/dist/coordinate/StateVector.js +0 -97
- package/dist/coordinate/StateVector.js.map +0 -1
- package/dist/coordinate/TEME.d.ts +0 -57
- package/dist/coordinate/TEME.js +0 -89
- package/dist/coordinate/TEME.js.map +0 -1
- package/dist/coordinate/Tle.d.ts +0 -429
- package/dist/coordinate/Tle.js +0 -866
- package/dist/coordinate/Tle.js.map +0 -1
- package/dist/coordinate/index.d.ts +0 -12
- package/dist/coordinate/index.js +0 -13
- package/dist/coordinate/index.js.map +0 -1
- package/dist/coordinate/tle-format-data.d.ts +0 -41
- package/dist/coordinate/tle-format-data.js +0 -46
- package/dist/coordinate/tle-format-data.js.map +0 -1
- package/dist/covariance/CovarianceSample.d.ts +0 -46
- package/dist/covariance/CovarianceSample.js +0 -221
- package/dist/covariance/CovarianceSample.js.map +0 -1
- package/dist/covariance/StateCovariance.d.ts +0 -42
- package/dist/covariance/StateCovariance.js +0 -65
- package/dist/covariance/StateCovariance.js.map +0 -1
- package/dist/covariance/index.d.ts +0 -2
- package/dist/covariance/index.js +0 -3
- package/dist/covariance/index.js.map +0 -1
- package/dist/data/DataHandler.d.ts +0 -66
- package/dist/data/DataHandler.js +0 -80
- package/dist/data/DataHandler.js.map +0 -1
- package/dist/data/values/Egm96Data.d.ts +0 -37
- package/dist/data/values/Egm96Data.js +0 -63
- package/dist/data/values/Egm96Data.js.map +0 -1
- package/dist/data/values/HpAtmosphereData.d.ts +0 -33
- package/dist/data/values/HpAtmosphereData.js +0 -58
- package/dist/data/values/HpAtmosphereData.js.map +0 -1
- package/dist/data/values/HpAtmosphereResult.d.ts +0 -29
- package/dist/data/values/HpAtmosphereResult.js +0 -38
- package/dist/data/values/HpAtmosphereResult.js.map +0 -1
- package/dist/data/values/Iau1980Data.d.ts +0 -36
- package/dist/data/values/Iau1980Data.js +0 -52
- package/dist/data/values/Iau1980Data.js.map +0 -1
- package/dist/data/values/LeapSecond.d.ts +0 -27
- package/dist/data/values/LeapSecond.js +0 -35
- package/dist/data/values/LeapSecond.js.map +0 -1
- package/dist/data/values/LeapSecondData.d.ts +0 -41
- package/dist/data/values/LeapSecondData.js +0 -103
- package/dist/data/values/LeapSecondData.js.map +0 -1
- package/dist/data/values/egm96.d.ts +0 -24
- package/dist/data/values/egm96.js +0 -726
- package/dist/data/values/egm96.js.map +0 -1
- package/dist/data/values/hpAtmosphere.d.ts +0 -24
- package/dist/data/values/hpAtmosphere.js +0 -76
- package/dist/data/values/hpAtmosphere.js.map +0 -1
- package/dist/data/values/iau1980.d.ts +0 -24
- package/dist/data/values/iau1980.js +0 -30
- package/dist/data/values/iau1980.js.map +0 -1
- package/dist/enums/AngularDiameterMethod.d.ts +0 -27
- package/dist/enums/AngularDiameterMethod.js +0 -29
- package/dist/enums/AngularDiameterMethod.js.map +0 -1
- package/dist/enums/AngularDistanceMethod.d.ts +0 -27
- package/dist/enums/AngularDistanceMethod.js +0 -29
- package/dist/enums/AngularDistanceMethod.js.map +0 -1
- package/dist/enums/CatalogSource.d.ts +0 -10
- package/dist/enums/CatalogSource.js +0 -12
- package/dist/enums/CatalogSource.js.map +0 -1
- package/dist/enums/CommLink.d.ts +0 -7
- package/dist/enums/CommLink.js +0 -9
- package/dist/enums/CommLink.js.map +0 -1
- package/dist/enums/FovFrame.d.ts +0 -25
- package/dist/enums/FovFrame.js +0 -27
- package/dist/enums/FovFrame.js.map +0 -1
- package/dist/enums/FovShape.d.ts +0 -25
- package/dist/enums/FovShape.js +0 -27
- package/dist/enums/FovShape.js.map +0 -1
- package/dist/enums/OrbitRegime.d.ts +0 -30
- package/dist/enums/OrbitRegime.js +0 -32
- package/dist/enums/OrbitRegime.js.map +0 -1
- package/dist/enums/PassType.d.ts +0 -28
- package/dist/enums/PassType.js +0 -30
- package/dist/enums/PassType.js.map +0 -1
- package/dist/enums/SensorType.d.ts +0 -33
- package/dist/enums/SensorType.js +0 -35
- package/dist/enums/SensorType.js.map +0 -1
- package/dist/enums/Sgp4OpsMode.d.ts +0 -26
- package/dist/enums/Sgp4OpsMode.js +0 -28
- package/dist/enums/Sgp4OpsMode.js.map +0 -1
- package/dist/enums/index.d.ts +0 -10
- package/dist/enums/index.js +0 -11
- package/dist/enums/index.js.map +0 -1
- package/dist/errors/index.d.ts +0 -153
- package/dist/errors/index.js +0 -179
- package/dist/errors/index.js.map +0 -1
- package/dist/force/AtmosphericDrag.d.ts +0 -50
- package/dist/force/AtmosphericDrag.js +0 -92
- package/dist/force/AtmosphericDrag.js.map +0 -1
- package/dist/force/EarthGravity.d.ts +0 -53
- package/dist/force/EarthGravity.js +0 -142
- package/dist/force/EarthGravity.js.map +0 -1
- package/dist/force/Force.d.ts +0 -26
- package/dist/force/Force.js +0 -22
- package/dist/force/Force.js.map +0 -1
- package/dist/force/ForceModel.d.ts +0 -45
- package/dist/force/ForceModel.js +0 -83
- package/dist/force/ForceModel.js.map +0 -1
- package/dist/force/Gravity.d.ts +0 -38
- package/dist/force/Gravity.js +0 -47
- package/dist/force/Gravity.js.map +0 -1
- package/dist/force/SolarRadiationPressure.d.ts +0 -26
- package/dist/force/SolarRadiationPressure.js +0 -45
- package/dist/force/SolarRadiationPressure.js.map +0 -1
- package/dist/force/ThirdBodyGravity.d.ts +0 -26
- package/dist/force/ThirdBodyGravity.js +0 -59
- package/dist/force/ThirdBodyGravity.js.map +0 -1
- package/dist/force/Thrust.d.ts +0 -34
- package/dist/force/Thrust.js +0 -58
- package/dist/force/Thrust.js.map +0 -1
- package/dist/force/index.d.ts +0 -8
- package/dist/force/index.js +0 -9
- package/dist/force/index.js.map +0 -1
- package/dist/interfaces/BaseObjectParams.d.ts +0 -30
- package/dist/interfaces/BaseObjectParams.js +0 -24
- package/dist/interfaces/BaseObjectParams.js.map +0 -1
- package/dist/interfaces/ClassicalElementsParams.d.ts +0 -33
- package/dist/interfaces/ClassicalElementsParams.js +0 -24
- package/dist/interfaces/ClassicalElementsParams.js.map +0 -1
- package/dist/interfaces/EquinoctialElementsParams.d.ts +0 -35
- package/dist/interfaces/EquinoctialElementsParams.js +0 -24
- package/dist/interfaces/EquinoctialElementsParams.js.map +0 -1
- package/dist/interfaces/GroundPositionParams.d.ts +0 -28
- package/dist/interfaces/GroundPositionParams.js +0 -24
- package/dist/interfaces/GroundPositionParams.js.map +0 -1
- package/dist/interfaces/OmmFormat.d.ts +0 -62
- package/dist/interfaces/OmmFormat.js +0 -2
- package/dist/interfaces/OmmFormat.js.map +0 -1
- package/dist/interfaces/OptionsParams.d.ts +0 -3
- package/dist/interfaces/OptionsParams.js +0 -2
- package/dist/interfaces/OptionsParams.js.map +0 -1
- package/dist/interfaces/SatelliteParams.d.ts +0 -38
- package/dist/interfaces/SatelliteParams.js +0 -2
- package/dist/interfaces/SatelliteParams.js.map +0 -1
- package/dist/interfaces/StarObjectParams.d.ts +0 -10
- package/dist/interfaces/StarObjectParams.js +0 -2
- package/dist/interfaces/StarObjectParams.js.map +0 -1
- package/dist/interfaces/TimeVariables.d.ts +0 -6
- package/dist/interfaces/TimeVariables.js +0 -2
- package/dist/interfaces/TimeVariables.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -7
- package/dist/interfaces/index.js +0 -2
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interpolator/ChebyshevCoefficients.d.ts +0 -50
- package/dist/interpolator/ChebyshevCoefficients.js +0 -94
- package/dist/interpolator/ChebyshevCoefficients.js.map +0 -1
- package/dist/interpolator/ChebyshevInterpolator.d.ts +0 -38
- package/dist/interpolator/ChebyshevInterpolator.js +0 -71
- package/dist/interpolator/ChebyshevInterpolator.js.map +0 -1
- package/dist/interpolator/CubicSpline.d.ts +0 -35
- package/dist/interpolator/CubicSpline.js +0 -69
- package/dist/interpolator/CubicSpline.js.map +0 -1
- package/dist/interpolator/CubicSplineInterpolator.d.ts +0 -36
- package/dist/interpolator/CubicSplineInterpolator.js +0 -80
- package/dist/interpolator/CubicSplineInterpolator.js.map +0 -1
- package/dist/interpolator/FieldInterpolator.d.ts +0 -28
- package/dist/interpolator/FieldInterpolator.js +0 -24
- package/dist/interpolator/FieldInterpolator.js.map +0 -1
- package/dist/interpolator/Interpolator.d.ts +0 -22
- package/dist/interpolator/Interpolator.js +0 -47
- package/dist/interpolator/Interpolator.js.map +0 -1
- package/dist/interpolator/LagrangeInterpolator.d.ts +0 -40
- package/dist/interpolator/LagrangeInterpolator.js +0 -159
- package/dist/interpolator/LagrangeInterpolator.js.map +0 -1
- package/dist/interpolator/StateInterpolator.d.ts +0 -27
- package/dist/interpolator/StateInterpolator.js +0 -27
- package/dist/interpolator/StateInterpolator.js.map +0 -1
- package/dist/interpolator/VerletBlendInterpolator.d.ts +0 -43
- package/dist/interpolator/VerletBlendInterpolator.js +0 -118
- package/dist/interpolator/VerletBlendInterpolator.js.map +0 -1
- package/dist/interpolator/index.d.ts +0 -31
- package/dist/interpolator/index.js +0 -32
- package/dist/interpolator/index.js.map +0 -1
- package/dist/main.js.map +0 -1
- package/dist/maneuver/TwoBurnOrbitTransfer.d.ts +0 -41
- package/dist/maneuver/TwoBurnOrbitTransfer.js +0 -65
- package/dist/maneuver/TwoBurnOrbitTransfer.js.map +0 -1
- package/dist/maneuver/Waypoint.d.ts +0 -91
- package/dist/maneuver/Waypoint.js +0 -179
- package/dist/maneuver/Waypoint.js.map +0 -1
- package/dist/maneuver/index.d.ts +0 -24
- package/dist/maneuver/index.js +0 -25
- package/dist/maneuver/index.js.map +0 -1
- package/dist/objects/AccessCalculator.d.ts +0 -112
- package/dist/objects/AccessCalculator.js +0 -268
- package/dist/objects/AccessCalculator.js.map +0 -1
- package/dist/objects/AccessWindow.d.ts +0 -95
- package/dist/objects/AccessWindow.js +0 -69
- package/dist/objects/AccessWindow.js.map +0 -1
- package/dist/objects/BaseObject.d.ts +0 -119
- package/dist/objects/BaseObject.js +0 -203
- package/dist/objects/BaseObject.js.map +0 -1
- package/dist/objects/CenterBody.d.ts +0 -41
- package/dist/objects/CenterBody.js +0 -85
- package/dist/objects/CenterBody.js.map +0 -1
- package/dist/objects/DynamicGroundObject.d.ts +0 -309
- package/dist/objects/DynamicGroundObject.js +0 -758
- package/dist/objects/DynamicGroundObject.js.map +0 -1
- package/dist/objects/EphemerisSatellite.d.ts +0 -209
- package/dist/objects/EphemerisSatellite.js +0 -480
- package/dist/objects/EphemerisSatellite.js.map +0 -1
- package/dist/objects/GroundObject.d.ts +0 -124
- package/dist/objects/GroundObject.js +0 -192
- package/dist/objects/GroundObject.js.map +0 -1
- package/dist/objects/GroundStation.d.ts +0 -60
- package/dist/objects/GroundStation.js +0 -113
- package/dist/objects/GroundStation.js.map +0 -1
- package/dist/objects/History.d.ts +0 -101
- package/dist/objects/History.js +0 -180
- package/dist/objects/History.js.map +0 -1
- package/dist/objects/InterpolatorType.d.ts +0 -39
- package/dist/objects/InterpolatorType.js +0 -41
- package/dist/objects/InterpolatorType.js.map +0 -1
- package/dist/objects/LandObject.d.ts +0 -38
- package/dist/objects/LandObject.js +0 -48
- package/dist/objects/LandObject.js.map +0 -1
- package/dist/objects/Marker.d.ts +0 -24
- package/dist/objects/Marker.js +0 -30
- package/dist/objects/Marker.js.map +0 -1
- package/dist/objects/ObjectTypes.d.ts +0 -60
- package/dist/objects/ObjectTypes.js +0 -18
- package/dist/objects/ObjectTypes.js.map +0 -1
- package/dist/objects/Satellite.d.ts +0 -443
- package/dist/objects/Satellite.js +0 -843
- package/dist/objects/Satellite.js.map +0 -1
- package/dist/objects/SpaceObject.d.ts +0 -205
- package/dist/objects/SpaceObject.js +0 -149
- package/dist/objects/SpaceObject.js.map +0 -1
- package/dist/objects/Star.d.ts +0 -44
- package/dist/objects/Star.js +0 -95
- package/dist/objects/Star.js.map +0 -1
- package/dist/objects/VisualizationHelpers.d.ts +0 -148
- package/dist/objects/VisualizationHelpers.js +0 -218
- package/dist/objects/VisualizationHelpers.js.map +0 -1
- package/dist/objects/index.d.ts +0 -24
- package/dist/objects/index.js +0 -16
- package/dist/objects/index.js.map +0 -1
- package/dist/observation/Observation.d.ts +0 -89
- package/dist/observation/Observation.js +0 -51
- package/dist/observation/Observation.js.map +0 -1
- package/dist/observation/ObservationOptical.d.ts +0 -48
- package/dist/observation/ObservationOptical.js +0 -105
- package/dist/observation/ObservationOptical.js.map +0 -1
- package/dist/observation/ObservationRadar.d.ts +0 -46
- package/dist/observation/ObservationRadar.js +0 -96
- package/dist/observation/ObservationRadar.js.map +0 -1
- package/dist/observation/ObservationUtils.d.ts +0 -22
- package/dist/observation/ObservationUtils.js +0 -46
- package/dist/observation/ObservationUtils.js.map +0 -1
- package/dist/observation/PropagatorPairs.d.ts +0 -32
- package/dist/observation/PropagatorPairs.js +0 -43
- package/dist/observation/PropagatorPairs.js.map +0 -1
- package/dist/observation/RAE.d.ts +0 -111
- package/dist/observation/RAE.js +0 -214
- package/dist/observation/RAE.js.map +0 -1
- package/dist/observation/RadecGeocentric.d.ts +0 -111
- package/dist/observation/RadecGeocentric.js +0 -169
- package/dist/observation/RadecGeocentric.js.map +0 -1
- package/dist/observation/RadecTopocentric.d.ts +0 -123
- package/dist/observation/RadecTopocentric.js +0 -200
- package/dist/observation/RadecTopocentric.js.map +0 -1
- package/dist/observation/index.d.ts +0 -26
- package/dist/observation/index.js +0 -27
- package/dist/observation/index.js.map +0 -1
- package/dist/operations/BoxMuller.d.ts +0 -46
- package/dist/operations/BoxMuller.js +0 -77
- package/dist/operations/BoxMuller.js.map +0 -1
- package/dist/operations/EulerAngles.d.ts +0 -105
- package/dist/operations/EulerAngles.js +0 -161
- package/dist/operations/EulerAngles.js.map +0 -1
- package/dist/operations/Matrix.d.ts +0 -170
- package/dist/operations/Matrix.js +0 -405
- package/dist/operations/Matrix.js.map +0 -1
- package/dist/operations/Quaternion.d.ts +0 -56
- package/dist/operations/Quaternion.js +0 -167
- package/dist/operations/Quaternion.js.map +0 -1
- package/dist/operations/Random.d.ts +0 -40
- package/dist/operations/Random.js +0 -50
- package/dist/operations/Random.js.map +0 -1
- package/dist/operations/RandomGaussianSource.d.ts +0 -24
- package/dist/operations/RandomGaussianSource.js +0 -43
- package/dist/operations/RandomGaussianSource.js.map +0 -1
- package/dist/operations/Vector.d.ts +0 -262
- package/dist/operations/Vector.js +0 -415
- package/dist/operations/Vector.js.map +0 -1
- package/dist/operations/Vector3D.d.ts +0 -80
- package/dist/operations/Vector3D.js +0 -224
- package/dist/operations/Vector3D.js.map +0 -1
- package/dist/operations/index.d.ts +0 -4
- package/dist/operations/index.js +0 -5
- package/dist/operations/index.js.map +0 -1
- package/dist/operations/operations.d.ts +0 -26
- package/dist/operations/operations.js +0 -27
- package/dist/operations/operations.js.map +0 -1
- package/dist/optimize/ChebyshevCompressor.d.ts +0 -80
- package/dist/optimize/ChebyshevCompressor.js +0 -128
- package/dist/optimize/ChebyshevCompressor.js.map +0 -1
- package/dist/optimize/DownhillSimplex.d.ts +0 -98
- package/dist/optimize/DownhillSimplex.js +0 -216
- package/dist/optimize/DownhillSimplex.js.map +0 -1
- package/dist/optimize/GoldenSection.d.ts +0 -177
- package/dist/optimize/GoldenSection.js +0 -202
- package/dist/optimize/GoldenSection.js.map +0 -1
- package/dist/optimize/PolynomialRegression.d.ts +0 -151
- package/dist/optimize/PolynomialRegression.js +0 -184
- package/dist/optimize/PolynomialRegression.js.map +0 -1
- package/dist/optimize/SimpleLinearRegression.d.ts +0 -153
- package/dist/optimize/SimpleLinearRegression.js +0 -212
- package/dist/optimize/SimpleLinearRegression.js.map +0 -1
- package/dist/optimize/index.d.ts +0 -5
- package/dist/optimize/index.js +0 -6
- package/dist/optimize/index.js.map +0 -1
- package/dist/optimize/internal/PolynomicalRegressionResult.d.ts +0 -118
- package/dist/optimize/internal/PolynomicalRegressionResult.js +0 -123
- package/dist/optimize/internal/PolynomicalRegressionResult.js.map +0 -1
- package/dist/optimize/internal/SimplexEntry.d.ts +0 -150
- package/dist/optimize/internal/SimplexEntry.js +0 -147
- package/dist/optimize/internal/SimplexEntry.js.map +0 -1
- package/dist/orbit-design/RepeatGroundTrack.d.ts +0 -184
- package/dist/orbit-design/RepeatGroundTrack.js +0 -359
- package/dist/orbit-design/RepeatGroundTrack.js.map +0 -1
- package/dist/orbit-design/index.d.ts +0 -18
- package/dist/orbit-design/index.js +0 -18
- package/dist/orbit-design/index.js.map +0 -1
- package/dist/orbit-determination/BatchLeastSquaresOD.d.ts +0 -69
- package/dist/orbit-determination/BatchLeastSquaresOD.js +0 -143
- package/dist/orbit-determination/BatchLeastSquaresOD.js.map +0 -1
- package/dist/orbit-determination/BatchLeastSquaresResult.d.ts +0 -31
- package/dist/orbit-determination/BatchLeastSquaresResult.js +0 -36
- package/dist/orbit-determination/BatchLeastSquaresResult.js.map +0 -1
- package/dist/orbit-determination/GaussIOD.d.ts +0 -98
- package/dist/orbit-determination/GaussIOD.js +0 -294
- package/dist/orbit-determination/GaussIOD.js.map +0 -1
- package/dist/orbit-determination/GibbsIOD.d.ts +0 -38
- package/dist/orbit-determination/GibbsIOD.js +0 -77
- package/dist/orbit-determination/GibbsIOD.js.map +0 -1
- package/dist/orbit-determination/GoodingIOD.d.ts +0 -155
- package/dist/orbit-determination/GoodingIOD.js +0 -492
- package/dist/orbit-determination/GoodingIOD.js.map +0 -1
- package/dist/orbit-determination/HerrickGibbsIOD.d.ts +0 -33
- package/dist/orbit-determination/HerrickGibbsIOD.js +0 -50
- package/dist/orbit-determination/HerrickGibbsIOD.js.map +0 -1
- package/dist/orbit-determination/LambertIOD.d.ts +0 -59
- package/dist/orbit-determination/LambertIOD.js +0 -213
- package/dist/orbit-determination/LambertIOD.js.map +0 -1
- package/dist/orbit-determination/LevenbergMarquardtOD.d.ts +0 -72
- package/dist/orbit-determination/LevenbergMarquardtOD.js +0 -202
- package/dist/orbit-determination/LevenbergMarquardtOD.js.map +0 -1
- package/dist/orbit-determination/LevenbergMarquardtResult.d.ts +0 -36
- package/dist/orbit-determination/LevenbergMarquardtResult.js +0 -43
- package/dist/orbit-determination/LevenbergMarquardtResult.js.map +0 -1
- package/dist/orbit-determination/ModifiedGoodingIOD.d.ts +0 -41
- package/dist/orbit-determination/ModifiedGoodingIOD.js +0 -94
- package/dist/orbit-determination/ModifiedGoodingIOD.js.map +0 -1
- package/dist/orbit-determination/index.d.ts +0 -9
- package/dist/orbit-determination/index.js +0 -10
- package/dist/orbit-determination/index.js.map +0 -1
- package/dist/parsers/CdmExporter.d.ts +0 -85
- package/dist/parsers/CdmExporter.js +0 -235
- package/dist/parsers/CdmExporter.js.map +0 -1
- package/dist/parsers/CdmParser.d.ts +0 -97
- package/dist/parsers/CdmParser.js +0 -396
- package/dist/parsers/CdmParser.js.map +0 -1
- package/dist/parsers/CdmTypes.d.ts +0 -240
- package/dist/parsers/CdmTypes.js +0 -18
- package/dist/parsers/CdmTypes.js.map +0 -1
- package/dist/parsers/HorizonsParser.d.ts +0 -128
- package/dist/parsers/HorizonsParser.js +0 -320
- package/dist/parsers/HorizonsParser.js.map +0 -1
- package/dist/parsers/OemParser.d.ts +0 -56
- package/dist/parsers/OemParser.js +0 -235
- package/dist/parsers/OemParser.js.map +0 -1
- package/dist/parsers/OemTypes.d.ts +0 -100
- package/dist/parsers/OemTypes.js +0 -18
- package/dist/parsers/OemTypes.js.map +0 -1
- package/dist/parsers/index.d.ts +0 -23
- package/dist/parsers/index.js +0 -24
- package/dist/parsers/index.js.map +0 -1
- package/dist/propagator/DormandPrince54Propagator.d.ts +0 -28
- package/dist/propagator/DormandPrince54Propagator.js +0 -64
- package/dist/propagator/DormandPrince54Propagator.js.map +0 -1
- package/dist/propagator/KeplerPropagator.d.ts +0 -35
- package/dist/propagator/KeplerPropagator.js +0 -83
- package/dist/propagator/KeplerPropagator.js.map +0 -1
- package/dist/propagator/Propagator.d.ts +0 -34
- package/dist/propagator/Propagator.js +0 -162
- package/dist/propagator/Propagator.js.map +0 -1
- package/dist/propagator/RkCheckpoint.d.ts +0 -22
- package/dist/propagator/RkCheckpoint.js +0 -27
- package/dist/propagator/RkCheckpoint.js.map +0 -1
- package/dist/propagator/RkResult.d.ts +0 -23
- package/dist/propagator/RkResult.js +0 -30
- package/dist/propagator/RkResult.js.map +0 -1
- package/dist/propagator/RungeKutta4Propagator.d.ts +0 -50
- package/dist/propagator/RungeKutta4Propagator.js +0 -141
- package/dist/propagator/RungeKutta4Propagator.js.map +0 -1
- package/dist/propagator/RungeKutta89Propagator.d.ts +0 -28
- package/dist/propagator/RungeKutta89Propagator.js +0 -126
- package/dist/propagator/RungeKutta89Propagator.js.map +0 -1
- package/dist/propagator/RungeKuttaAdaptive.d.ts +0 -51
- package/dist/propagator/RungeKuttaAdaptive.js +0 -199
- package/dist/propagator/RungeKuttaAdaptive.js.map +0 -1
- package/dist/propagator/Sgp4Propagator.d.ts +0 -76
- package/dist/propagator/Sgp4Propagator.js +0 -96
- package/dist/propagator/Sgp4Propagator.js.map +0 -1
- package/dist/propagator/index.d.ts +0 -9
- package/dist/propagator/index.js +0 -10
- package/dist/propagator/index.js.map +0 -1
- package/dist/scheduling/ContactScheduler.d.ts +0 -248
- package/dist/scheduling/ContactScheduler.js +0 -503
- package/dist/scheduling/ContactScheduler.js.map +0 -1
- package/dist/scheduling/ScheduledContact.d.ts +0 -155
- package/dist/scheduling/ScheduledContact.js +0 -189
- package/dist/scheduling/ScheduledContact.js.map +0 -1
- package/dist/scheduling/index.d.ts +0 -5
- package/dist/scheduling/index.js +0 -4
- package/dist/scheduling/index.js.map +0 -1
- package/dist/sensor/FieldOfView.d.ts +0 -250
- package/dist/sensor/FieldOfView.js +0 -470
- package/dist/sensor/FieldOfView.js.map +0 -1
- package/dist/sensor/LaserRangingSensor.d.ts +0 -122
- package/dist/sensor/LaserRangingSensor.js +0 -174
- package/dist/sensor/LaserRangingSensor.js.map +0 -1
- package/dist/sensor/MechanicalRadar.d.ts +0 -86
- package/dist/sensor/MechanicalRadar.js +0 -130
- package/dist/sensor/MechanicalRadar.js.map +0 -1
- package/dist/sensor/OpticalSensor.d.ts +0 -111
- package/dist/sensor/OpticalSensor.js +0 -164
- package/dist/sensor/OpticalSensor.js.map +0 -1
- package/dist/sensor/PassiveRFSensor.d.ts +0 -115
- package/dist/sensor/PassiveRFSensor.js +0 -168
- package/dist/sensor/PassiveRFSensor.js.map +0 -1
- package/dist/sensor/PhasedArrayRadar.d.ts +0 -170
- package/dist/sensor/PhasedArrayRadar.js +0 -290
- package/dist/sensor/PhasedArrayRadar.js.map +0 -1
- package/dist/sensor/RadarSensor.d.ts +0 -94
- package/dist/sensor/RadarSensor.js +0 -106
- package/dist/sensor/RadarSensor.js.map +0 -1
- package/dist/sensor/Sensor.d.ts +0 -271
- package/dist/sensor/Sensor.js +0 -343
- package/dist/sensor/Sensor.js.map +0 -1
- package/dist/sensor/index.d.ts +0 -74
- package/dist/sensor/index.js +0 -70
- package/dist/sensor/index.js.map +0 -1
- package/dist/sgp4/index.d.ts +0 -25
- package/dist/sgp4/index.js +0 -25
- package/dist/sgp4/index.js.map +0 -1
- package/dist/sgp4/sgp4-error.d.ts +0 -22
- package/dist/sgp4/sgp4-error.js +0 -44
- package/dist/sgp4/sgp4-error.js.map +0 -1
- package/dist/sgp4/sgp4.d.ts +0 -99
- package/dist/sgp4/sgp4.js +0 -3170
- package/dist/sgp4/sgp4.js.map +0 -1
- package/dist/smoothing/ExponentialSmoothing.d.ts +0 -37
- package/dist/smoothing/ExponentialSmoothing.js +0 -75
- package/dist/smoothing/ExponentialSmoothing.js.map +0 -1
- package/dist/time/Epoch.d.ts +0 -81
- package/dist/time/Epoch.js +0 -146
- package/dist/time/Epoch.js.map +0 -1
- package/dist/time/EpochGPS.d.ts +0 -106
- package/dist/time/EpochGPS.js +0 -134
- package/dist/time/EpochGPS.js.map +0 -1
- package/dist/time/EpochTAI.d.ts +0 -62
- package/dist/time/EpochTAI.js +0 -63
- package/dist/time/EpochTAI.js.map +0 -1
- package/dist/time/EpochTDB.d.ts +0 -72
- package/dist/time/EpochTDB.js +0 -73
- package/dist/time/EpochTDB.js.map +0 -1
- package/dist/time/EpochTT.d.ts +0 -75
- package/dist/time/EpochTT.js +0 -76
- package/dist/time/EpochTT.js.map +0 -1
- package/dist/time/EpochUTC.d.ts +0 -123
- package/dist/time/EpochUTC.js +0 -200
- package/dist/time/EpochUTC.js.map +0 -1
- package/dist/time/EpochWindow.d.ts +0 -28
- package/dist/time/EpochWindow.js +0 -31
- package/dist/time/EpochWindow.js.map +0 -1
- package/dist/time/TimeStamped.d.ts +0 -61
- package/dist/time/TimeStamped.js +0 -73
- package/dist/time/TimeStamped.js.map +0 -1
- package/dist/time/index.d.ts +0 -8
- package/dist/time/index.js +0 -9
- package/dist/time/index.js.map +0 -1
- package/dist/transforms/TransformCache.d.ts +0 -27
- package/dist/transforms/TransformCache.js +0 -41
- package/dist/transforms/TransformCache.js.map +0 -1
- package/dist/transforms/conversions.d.ts +0 -63
- package/dist/transforms/conversions.js +0 -89
- package/dist/transforms/conversions.js.map +0 -1
- package/dist/transforms/index.d.ts +0 -2
- package/dist/transforms/index.js +0 -3
- package/dist/transforms/index.js.map +0 -1
- package/dist/transforms/transforms.d.ts +0 -241
- package/dist/transforms/transforms.js +0 -479
- package/dist/transforms/transforms.js.map +0 -1
- package/dist/types/types.d.ts +0 -757
- package/dist/types/types.js +0 -90
- package/dist/types/types.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -80
- package/dist/utils/constants.js +0 -87
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/create-covariance-from-tle.d.ts +0 -18
- package/dist/utils/create-covariance-from-tle.js +0 -57
- package/dist/utils/create-covariance-from-tle.js.map +0 -1
- package/dist/utils/functions.d.ts +0 -236
- package/dist/utils/functions.js +0 -501
- package/dist/utils/functions.js.map +0 -1
- package/dist/utils/index.d.ts +0 -5
- package/dist/utils/index.js +0 -6
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/jacobian.d.ts +0 -17
- package/dist/utils/jacobian.js +0 -34
- package/dist/utils/jacobian.js.map +0 -1
- package/dist/utils/linearDistance.d.ts +0 -8
- package/dist/utils/linearDistance.js +0 -10
- package/dist/utils/linearDistance.js.map +0 -1
- package/docs/README.md +0 -151
- package/docs/getting-started.md +0 -792
- package/docs/lambert-satellite-integration-guide.md +0 -766
- package/docs/user-guide.md +0 -1935
- package/jest.config.mjs +0 -29
- package/src/body/CelestialBody.ts +0 -316
- package/src/body/CelestialBodyType.ts +0 -55
- package/src/body/Earth.ts +0 -260
- package/src/body/EphemerisBody.ts +0 -349
- package/src/body/MoonBody.ts +0 -552
- package/src/body/NutationAngles.ts +0 -40
- package/src/body/PlanetBody.ts +0 -354
- package/src/body/PrecessionAngles.ts +0 -31
- package/src/body/SolarSystem.ts +0 -276
- package/src/body/SunBody.ts +0 -538
- package/src/body/__tests__/Earth.test.ts +0 -135
- package/src/body/__tests__/EphemerisBody.test.ts +0 -323
- package/src/body/__tests__/MoonBody.test.ts +0 -198
- package/src/body/__tests__/PlanetBody.test.ts +0 -257
- package/src/body/__tests__/SolarSystem.test.ts +0 -237
- package/src/body/__tests__/SunBody.test.ts +0 -227
- package/src/body/__tests__/__snapshots__/Earth.test.ts.snap +0 -39
- package/src/body/index.ts +0 -64
- package/src/body/suncalc.LICENSE.md +0 -18
- package/src/comm/Antenna.ts +0 -213
- package/src/comm/Beacon.ts +0 -328
- package/src/comm/CommTypes.ts +0 -216
- package/src/comm/CommunicationDevice.ts +0 -199
- package/src/comm/Receiver.ts +0 -263
- package/src/comm/Transmitter.ts +0 -349
- package/src/comm/Transponder.ts +0 -360
- package/src/comm/__tests__/Antenna.test.ts +0 -155
- package/src/comm/__tests__/Beacon.test.ts +0 -333
- package/src/comm/__tests__/CommTypes.test.ts +0 -165
- package/src/comm/__tests__/Receiver.test.ts +0 -215
- package/src/comm/__tests__/Transmitter.test.ts +0 -164
- package/src/comm/__tests__/Transponder.test.ts +0 -181
- package/src/comm/index.ts +0 -60
- package/src/conjunction/CatalogScreener.ts +0 -322
- package/src/conjunction/ConjunctionAssessment.ts +0 -410
- package/src/conjunction/ConjunctionEvent.ts +0 -185
- package/src/conjunction/CovarianceRealism.ts +0 -472
- package/src/conjunction/ProbabilityOfCollision.ts +0 -302
- package/src/conjunction/ScreeningFilter.ts +0 -206
- package/src/conjunction/__tests__/CatalogScreener.test.ts +0 -280
- package/src/conjunction/__tests__/ConjunctionAssessment.basic.test.ts +0 -250
- package/src/conjunction/__tests__/ConjunctionAssessment.highfidelity.test.ts +0 -76
- package/src/conjunction/__tests__/CovarianceRealism.test.ts +0 -296
- package/src/conjunction/index.ts +0 -35
- package/src/constellation/ConstellationGenerator.ts +0 -377
- package/src/constellation/__tests__/ConstellationGenerator.test.ts +0 -446
- package/src/constellation/index.ts +0 -18
- package/src/coordinate/ClassicalElements.ts +0 -394
- package/src/coordinate/EquinoctialElements.ts +0 -189
- package/src/coordinate/FormatTle.ts +0 -219
- package/src/coordinate/Geodetic.ts +0 -191
- package/src/coordinate/Hill.ts +0 -326
- package/src/coordinate/ITRF.ts +0 -146
- package/src/coordinate/J2000.ts +0 -130
- package/src/coordinate/README.md +0 -788
- package/src/coordinate/RIC.ts +0 -87
- package/src/coordinate/RelativeState.ts +0 -101
- package/src/coordinate/StateVector.ts +0 -128
- package/src/coordinate/TEME.ts +0 -97
- package/src/coordinate/Tle.ts +0 -1025
- package/src/coordinate/__tests__/ClassicalElements.test.ts +0 -129
- package/src/coordinate/__tests__/EquinoctialElements.test.ts +0 -108
- package/src/coordinate/__tests__/FormatTle.test.ts +0 -92
- package/src/coordinate/__tests__/Geodetic.test.ts +0 -165
- package/src/coordinate/__tests__/Hill.test.ts +0 -195
- package/src/coordinate/__tests__/ITRF.test.ts +0 -231
- package/src/coordinate/__tests__/J2000.test.ts +0 -132
- package/src/coordinate/__tests__/RIC.test.ts +0 -107
- package/src/coordinate/__tests__/TEME.test.ts +0 -48
- package/src/coordinate/__tests__/Tle.test.ts +0 -185
- package/src/coordinate/__tests__/__snapshots__/ClassicalElements.test.ts.snap +0 -106
- package/src/coordinate/__tests__/__snapshots__/EquinoctialElements.test.ts.snap +0 -93
- package/src/coordinate/__tests__/__snapshots__/Geodetic.test.ts.snap +0 -54
- package/src/coordinate/__tests__/__snapshots__/ITRF.test.ts.snap +0 -321
- package/src/coordinate/__tests__/__snapshots__/J2000.test.ts.snap +0 -26
- package/src/coordinate/__tests__/__snapshots__/RIC.test.ts.snap +0 -79
- package/src/coordinate/__tests__/__snapshots__/TEME.test.ts.snap +0 -41
- package/src/coordinate/__tests__/__snapshots__/Tle.test.ts.snap +0 -180
- package/src/coordinate/index.ts +0 -13
- package/src/coordinate/tle-format-data.ts +0 -47
- package/src/covariance/CovarianceSample.ts +0 -292
- package/src/covariance/StateCovariance.ts +0 -69
- package/src/covariance/__tests__/CovarianceSample.test.ts +0 -143
- package/src/covariance/__tests__/StateCovariance.test.ts +0 -90
- package/src/covariance/index.ts +0 -3
- package/src/data/DataHandler.ts +0 -88
- package/src/data/values/Egm96Data.ts +0 -75
- package/src/data/values/HpAtmosphereData.ts +0 -76
- package/src/data/values/HpAtmosphereResult.ts +0 -41
- package/src/data/values/Iau1980Data.ts +0 -63
- package/src/data/values/LeapSecond.ts +0 -37
- package/src/data/values/LeapSecondData.ts +0 -113
- package/src/data/values/__tests__/Egm96Data.test.ts +0 -33
- package/src/data/values/__tests__/HpAtmosphereData.test.ts +0 -82
- package/src/data/values/__tests__/LeapSecondData.test.ts +0 -59
- package/src/data/values/egm96.ts +0 -728
- package/src/data/values/hpAtmosphere.ts +0 -79
- package/src/data/values/iau1980.ts +0 -32
- package/src/enums/AngularDiameterMethod.ts +0 -28
- package/src/enums/AngularDistanceMethod.ts +0 -28
- package/src/enums/CatalogSource.ts +0 -10
- package/src/enums/CommLink.ts +0 -7
- package/src/enums/FovFrame.ts +0 -26
- package/src/enums/FovShape.ts +0 -26
- package/src/enums/OrbitRegime.ts +0 -31
- package/src/enums/PassType.ts +0 -29
- package/src/enums/SensorType.ts +0 -34
- package/src/enums/Sgp4OpsMode.ts +0 -27
- package/src/enums/index.ts +0 -11
- package/src/errors/__tests__/errors.test.ts +0 -196
- package/src/errors/index.ts +0 -185
- package/src/fetch/horizons-constants.ts +0 -53
- package/src/fetch/horizons-interfaces.ts +0 -38
- package/src/fetch/horizons.ts +0 -300
- package/src/fetch/index.ts +0 -26
- package/src/force/AtmosphericDrag.ts +0 -120
- package/src/force/EarthGravity.ts +0 -182
- package/src/force/Force.ts +0 -31
- package/src/force/ForceModel.ts +0 -99
- package/src/force/Gravity.ts +0 -53
- package/src/force/README.md +0 -99
- package/src/force/SolarRadiationPressure.ts +0 -43
- package/src/force/ThirdBodyGravity.ts +0 -64
- package/src/force/Thrust.ts +0 -83
- package/src/force/__tests__/AtmosphericDrag.test.ts +0 -168
- package/src/force/__tests__/EarthGravity.test.ts +0 -115
- package/src/force/__tests__/ForceModel.test.ts +0 -188
- package/src/force/__tests__/Gravity.test.ts +0 -81
- package/src/force/__tests__/SolarRadiationPressure.test.ts +0 -115
- package/src/force/__tests__/ThirdBodyGravity.test.ts +0 -119
- package/src/force/__tests__/Thrust.test.ts +0 -132
- package/src/force/index.ts +0 -9
- package/src/interfaces/BaseObjectParams.ts +0 -32
- package/src/interfaces/ClassicalElementsParams.ts +0 -35
- package/src/interfaces/EquinoctialElementsParams.ts +0 -37
- package/src/interfaces/GroundPositionParams.ts +0 -30
- package/src/interfaces/OmmFormat.ts +0 -63
- package/src/interfaces/OptionsParams.ts +0 -3
- package/src/interfaces/SatelliteParams.ts +0 -57
- package/src/interfaces/StarObjectParams.ts +0 -11
- package/src/interfaces/TimeVariables.ts +0 -7
- package/src/interfaces/index.ts +0 -8
- package/src/interpolator/ChebyshevCoefficients.ts +0 -109
- package/src/interpolator/ChebyshevInterpolator.ts +0 -87
- package/src/interpolator/CubicSpline.ts +0 -72
- package/src/interpolator/CubicSplineInterpolator.ts +0 -90
- package/src/interpolator/FieldInterpolator.ts +0 -35
- package/src/interpolator/Interpolator.ts +0 -56
- package/src/interpolator/LagrangeInterpolator.ts +0 -192
- package/src/interpolator/StateInterpolator.ts +0 -37
- package/src/interpolator/VerletBlendInterpolator.ts +0 -146
- package/src/interpolator/__tests__/ChebyshevCoefficients.test.ts +0 -105
- package/src/interpolator/__tests__/ChebyshevInterpolator.test.ts +0 -81
- package/src/interpolator/__tests__/CubicSpline.test.ts +0 -80
- package/src/interpolator/__tests__/CubicSplineInterpolator.test.ts +0 -94
- package/src/interpolator/__tests__/FieldInterpolator.test.ts +0 -59
- package/src/interpolator/__tests__/Interpolator.test.ts +0 -131
- package/src/interpolator/__tests__/LagrangeInterpolator.test.ts +0 -121
- package/src/interpolator/__tests__/StateInterpolator.test.ts +0 -57
- package/src/interpolator/__tests__/VerletBlendInterpolator.test.ts +0 -116
- package/src/interpolator/index.ts +0 -32
- package/src/main.ts +0 -87
- package/src/maneuver/TwoBurnOrbitTransfer.ts +0 -79
- package/src/maneuver/Waypoint.ts +0 -267
- package/src/maneuver/__tests__/TwoBurnOrbitTransfer.test.ts +0 -90
- package/src/maneuver/__tests__/Waypoint.test.ts +0 -427
- package/src/maneuver/index.ts +0 -25
- package/src/objects/AccessCalculator.ts +0 -345
- package/src/objects/AccessWindow.ts +0 -129
- package/src/objects/BaseObject.ts +0 -242
- package/src/objects/CenterBody.ts +0 -88
- package/src/objects/DynamicGroundObject.ts +0 -975
- package/src/objects/EphemerisSatellite.ts +0 -629
- package/src/objects/GroundObject.ts +0 -246
- package/src/objects/GroundStation.ts +0 -130
- package/src/objects/History.ts +0 -228
- package/src/objects/InterpolatorType.ts +0 -42
- package/src/objects/LandObject.ts +0 -62
- package/src/objects/Marker.ts +0 -32
- package/src/objects/ObjectTypes.ts +0 -66
- package/src/objects/Satellite.ts +0 -1013
- package/src/objects/SpaceObject.ts +0 -304
- package/src/objects/Star.ts +0 -135
- package/src/objects/VisualizationHelpers.ts +0 -324
- package/src/objects/__tests__/AccessCalculator.test.ts +0 -499
- package/src/objects/__tests__/DynamicGroundObject.test.ts +0 -859
- package/src/objects/__tests__/EphemerisSatellite.test.ts +0 -589
- package/src/objects/__tests__/GroundStation.test.ts +0 -204
- package/src/objects/__tests__/Satellite.test.ts +0 -487
- package/src/objects/__tests__/SpaceObject.rae.test.ts +0 -156
- package/src/objects/__tests__/VisualizationHelpers.test.ts +0 -438
- package/src/objects/index.ts +0 -31
- package/src/observation/Observation.ts +0 -113
- package/src/observation/ObservationOptical.ts +0 -146
- package/src/observation/ObservationRadar.ts +0 -135
- package/src/observation/ObservationUtils.ts +0 -69
- package/src/observation/PropagatorPairs.ts +0 -45
- package/src/observation/RAE.ts +0 -261
- package/src/observation/RadecGeocentric.ts +0 -206
- package/src/observation/RadecTopocentric.ts +0 -247
- package/src/observation/__tests__/RAE.test.ts +0 -135
- package/src/observation/__tests__/RadecGeocentric.test.ts +0 -107
- package/src/observation/__tests__/RadecTopocentric.test.ts +0 -121
- package/src/observation/__tests__/__snapshots__/RAE.test.ts.snap +0 -91
- package/src/observation/__tests__/__snapshots__/RadecGeocentric.test.ts.snap +0 -71
- package/src/observation/__tests__/__snapshots__/RadecTopocentric.test.ts.snap +0 -71
- package/src/observation/index.ts +0 -28
- package/src/operations/BoxMuller.ts +0 -87
- package/src/operations/EulerAngles.ts +0 -183
- package/src/operations/Matrix.ts +0 -473
- package/src/operations/Quaternion.ts +0 -222
- package/src/operations/Random.ts +0 -54
- package/src/operations/RandomGaussianSource.ts +0 -51
- package/src/operations/Vector.ts +0 -484
- package/src/operations/Vector3D.ts +0 -272
- package/src/operations/__tests__/Matrix.test.ts +0 -277
- package/src/operations/__tests__/Random.test.ts +0 -24
- package/src/operations/__tests__/Vector.test.ts +0 -269
- package/src/operations/__tests__/Vector3D.test.ts +0 -100
- package/src/operations/__tests__/__snapshots__/Matrix.test.ts.snap +0 -161
- package/src/operations/__tests__/__snapshots__/Random.test.ts.snap +0 -7
- package/src/operations/__tests__/__snapshots__/Vector.test.ts.snap +0 -218
- package/src/operations/__tests__/__snapshots__/Vector3D.test.ts.snap +0 -138
- package/src/operations/index.ts +0 -5
- package/src/operations/operations.ts +0 -28
- package/src/optimize/ChebyshevCompressor.ts +0 -141
- package/src/optimize/DownhillSimplex.ts +0 -246
- package/src/optimize/GoldenSection.ts +0 -230
- package/src/optimize/PolynomialRegression.ts +0 -211
- package/src/optimize/README.md +0 -343
- package/src/optimize/SimpleLinearRegression.ts +0 -227
- package/src/optimize/__tests__/ChebyshevCompressor.test.ts +0 -40
- package/src/optimize/__tests__/DownhillSimplex.test.ts +0 -168
- package/src/optimize/__tests__/GoldenSection.test.ts +0 -21
- package/src/optimize/__tests__/PolynomialRegression.test.ts +0 -24
- package/src/optimize/__tests__/SimpleLinearRegression.test.ts +0 -31
- package/src/optimize/index.ts +0 -6
- package/src/optimize/internal/PolynomicalRegressionResult.ts +0 -126
- package/src/optimize/internal/SimplexEntry.ts +0 -169
- package/src/orbit-design/RepeatGroundTrack.ts +0 -516
- package/src/orbit-design/__tests__/RepeatGroundTrack.test.ts +0 -526
- package/src/orbit-design/index.ts +0 -23
- package/src/orbit-determination/BatchLeastSquaresOD.ts +0 -174
- package/src/orbit-determination/BatchLeastSquaresResult.ts +0 -33
- package/src/orbit-determination/GaussIOD.ts +0 -396
- package/src/orbit-determination/GibbsIOD.ts +0 -98
- package/src/orbit-determination/GoodingIOD.ts +0 -680
- package/src/orbit-determination/HerrickGibbsIOD.ts +0 -51
- package/src/orbit-determination/LambertIOD.ts +0 -260
- package/src/orbit-determination/LevenbergMarquardtOD.ts +0 -258
- package/src/orbit-determination/LevenbergMarquardtResult.ts +0 -42
- package/src/orbit-determination/ModifiedGoodingIOD.test.ts +0 -86
- package/src/orbit-determination/ModifiedGoodingIOD.ts +0 -145
- package/src/orbit-determination/README.md +0 -353
- package/src/orbit-determination/__tests__/BatchLeastSquaresOD.accuracy.test.ts +0 -320
- package/src/orbit-determination/__tests__/BatchLeastSquaresOD.observations.test.ts +0 -279
- package/src/orbit-determination/__tests__/BatchLeastSquaresOD.robustness.test.ts +0 -439
- package/src/orbit-determination/__tests__/GaussIOD.test.ts +0 -395
- package/src/orbit-determination/__tests__/GibbsIOD.test.ts +0 -423
- package/src/orbit-determination/__tests__/GoodingIOD.test.ts +0 -356
- package/src/orbit-determination/__tests__/HerrickGibbsIOD.test.ts +0 -501
- package/src/orbit-determination/__tests__/LambertIOD.test.ts +0 -643
- package/src/orbit-determination/__tests__/LevenbergMarquardtOD.test.ts +0 -1039
- package/src/orbit-determination/index.ts +0 -10
- package/src/parsers/CdmExporter.ts +0 -298
- package/src/parsers/CdmParser.ts +0 -474
- package/src/parsers/CdmTypes.ts +0 -259
- package/src/parsers/HorizonsParser.ts +0 -432
- package/src/parsers/OemParser.ts +0 -277
- package/src/parsers/OemTypes.ts +0 -111
- package/src/parsers/__tests__/CdmExporter.test.ts +0 -305
- package/src/parsers/__tests__/CdmParser.test.ts +0 -305
- package/src/parsers/__tests__/HorizonsParser.test.ts +0 -126
- package/src/parsers/__tests__/OemParser.test.ts +0 -398
- package/src/parsers/index.ts +0 -49
- package/src/propagator/DormandPrince54Propagator.ts +0 -73
- package/src/propagator/KeplerPropagator.ts +0 -101
- package/src/propagator/Propagator.ts +0 -253
- package/src/propagator/README.md +0 -241
- package/src/propagator/RkCheckpoint.ts +0 -25
- package/src/propagator/RkResult.ts +0 -26
- package/src/propagator/RungeKutta4Propagator.ts +0 -179
- package/src/propagator/RungeKutta89Propagator.ts +0 -132
- package/src/propagator/RungeKuttaAdaptive.ts +0 -282
- package/src/propagator/Sgp4Propagator.ts +0 -111
- package/src/propagator/__tests__/KeplerPropagator.test.ts +0 -250
- package/src/propagator/__tests__/Propagator.test.ts +0 -180
- package/src/propagator/__tests__/RungeKutta4Propagator.test.ts +0 -289
- package/src/propagator/__tests__/RungeKuttaAdaptive.test.ts +0 -244
- package/src/propagator/__tests__/Sgp4Propagator.test.ts +0 -144
- package/src/propagator/index.ts +0 -10
- package/src/scheduling/ContactScheduler.ts +0 -760
- package/src/scheduling/ScheduledContact.ts +0 -249
- package/src/scheduling/__tests__/ContactScheduler.test.ts +0 -389
- package/src/scheduling/__tests__/ScheduledContact.test.ts +0 -293
- package/src/scheduling/index.ts +0 -10
- package/src/sensor/FieldOfView.ts +0 -666
- package/src/sensor/LaserRangingSensor.ts +0 -210
- package/src/sensor/MechanicalRadar.ts +0 -156
- package/src/sensor/OpticalSensor.ts +0 -198
- package/src/sensor/PassiveRFSensor.ts +0 -205
- package/src/sensor/PhasedArrayRadar.ts +0 -352
- package/src/sensor/RadarSensor.ts +0 -150
- package/src/sensor/Sensor.ts +0 -487
- package/src/sensor/__tests__/Sensor.test.ts +0 -135
- package/src/sensor/index.ts +0 -81
- package/src/sensor/v2-docs/field-of-view-design-document.md +0 -466
- package/src/sgp4/index.ts +0 -27
- package/src/sgp4/sgp4-error.ts +0 -53
- package/src/sgp4/sgp4.LICENSE.md +0 -28
- package/src/sgp4/sgp4.ts +0 -3983
- package/src/smoothing/ExponentialSmoothing.ts +0 -83
- package/src/smoothing/__tests__/ExponentialSmoothing.test.ts +0 -108
- package/src/time/Epoch.ts +0 -165
- package/src/time/EpochGPS.ts +0 -141
- package/src/time/EpochTAI.ts +0 -63
- package/src/time/EpochTDB.ts +0 -73
- package/src/time/EpochTT.ts +0 -76
- package/src/time/EpochUTC.ts +0 -253
- package/src/time/EpochWindow.ts +0 -33
- package/src/time/README.md +0 -212
- package/src/time/TimeStamped.ts +0 -80
- package/src/time/__tests__/Epoch.test.ts +0 -250
- package/src/time/__tests__/EpochGPS.test.ts +0 -78
- package/src/time/__tests__/EpochUTC.test.ts +0 -149
- package/src/time/__tests__/EpochWindow.test.ts +0 -30
- package/src/time/__tests__/TimeStamped.test.ts +0 -62
- package/src/time/__tests__/__snapshots__/Epoch.test.ts.snap +0 -46
- package/src/time/__tests__/__snapshots__/EpochGPS.test.ts.snap +0 -13
- package/src/time/__tests__/__snapshots__/EpochUTC.test.ts.snap +0 -112
- package/src/time/__tests__/__snapshots__/TimeStamped.test.ts.snap +0 -10
- package/src/time/index.ts +0 -9
- package/src/transforms/TransformCache.ts +0 -46
- package/src/transforms/__tests__/__snapshots__/transforms.test.ts.snap +0 -16
- package/src/transforms/__tests__/__snapshots__/transforms2.test.ts.snap +0 -49
- package/src/transforms/__tests__/conversions.test.ts +0 -80
- package/src/transforms/__tests__/transforms.test.ts +0 -128
- package/src/transforms/__tests__/transforms2.test.ts +0 -275
- package/src/transforms/__tests__/transformsData.ts +0 -289
- package/src/transforms/conversions.ts +0 -99
- package/src/transforms/index.ts +0 -3
- package/src/transforms/transforms.ts +0 -614
- package/src/types/types.ts +0 -829
- package/src/utils/__tests__/__snapshots__/functions.test.ts.snap +0 -89
- package/src/utils/__tests__/__snapshots__/utils.test.ts.snap +0 -5
- package/src/utils/__tests__/create-covariance-from-tle.test.ts +0 -90
- package/src/utils/__tests__/functions.test.ts +0 -450
- package/src/utils/__tests__/jacobian.test.ts +0 -37
- package/src/utils/__tests__/linearDistance.test.ts +0 -44
- package/src/utils/__tests__/utils.test.ts +0 -164
- package/src/utils/constants.ts +0 -113
- package/src/utils/create-covariance-from-tle.ts +0 -75
- package/src/utils/functions.ts +0 -590
- package/src/utils/index.ts +0 -6
- package/src/utils/jacobian.ts +0 -42
- package/src/utils/linearDistance.ts +0 -11
- /package/{LICENSE.md → LICENSE.MD} +0 -0
|
@@ -1,1039 +0,0 @@
|
|
|
1
|
-
/* eslint-disable max-lines */
|
|
2
|
-
/* eslint-disable no-undefined */
|
|
3
|
-
/**
|
|
4
|
-
* @file LevenbergMarquardtOD test suite
|
|
5
|
-
* @description Comprehensive tests for Levenberg-Marquardt orbit determination
|
|
6
|
-
*
|
|
7
|
-
* Test priority: Accuracy-first - verify the algorithm produces correct results
|
|
8
|
-
* with perfect data before testing robustness.
|
|
9
|
-
*
|
|
10
|
-
* Uses SGP4-based synthetic test cases with proven TLEs.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { ForceModel } from '@src/force/ForceModel';
|
|
14
|
-
import {
|
|
15
|
-
ClassicalElements,
|
|
16
|
-
DEG2RAD,
|
|
17
|
-
Degrees,
|
|
18
|
-
J2000,
|
|
19
|
-
Kilometers,
|
|
20
|
-
KilometersPerSecond,
|
|
21
|
-
RAE,
|
|
22
|
-
RadecTopocentric,
|
|
23
|
-
Radians,
|
|
24
|
-
Seconds,
|
|
25
|
-
Vector3D,
|
|
26
|
-
} from '@src/main';
|
|
27
|
-
import { GroundStation } from '../../objects/GroundStation';
|
|
28
|
-
import { Observation } from '@src/observation/Observation';
|
|
29
|
-
import { ObservationOptical } from '@src/observation/ObservationOptical';
|
|
30
|
-
import { ObservationRadar } from '@src/observation/ObservationRadar';
|
|
31
|
-
import { GoodingIOD, LevenbergMarquardtOD } from '@src/orbit-determination';
|
|
32
|
-
import { GaussIOD } from '@src/orbit-determination/GaussIOD';
|
|
33
|
-
import { KeplerPropagator } from '@src/propagator/KeplerPropagator';
|
|
34
|
-
import { Propagator } from '@src/propagator/Propagator';
|
|
35
|
-
import { EpochUTC } from '@src/time';
|
|
36
|
-
|
|
37
|
-
/*
|
|
38
|
-
* ============================================================================
|
|
39
|
-
* Test Fixtures: Classical elements for each orbit regime
|
|
40
|
-
* Using KeplerPropagator to match LM's two-body dynamics
|
|
41
|
-
* ============================================================================
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/** Create a LEO orbit (ISS-like, ~400 km altitude) */
|
|
45
|
-
function createLeoOrbit(epoch: EpochUTC): ClassicalElements {
|
|
46
|
-
return new ClassicalElements({
|
|
47
|
-
epoch,
|
|
48
|
-
semimajorAxis: 6778 as Kilometers, // ~400 km altitude
|
|
49
|
-
eccentricity: 0.0001,
|
|
50
|
-
inclination: (51.6 * DEG2RAD) as Radians,
|
|
51
|
-
argPerigee: (90.0 * DEG2RAD) as Radians,
|
|
52
|
-
rightAscension: (45.0 * DEG2RAD) as Radians,
|
|
53
|
-
trueAnomaly: (0.0 * DEG2RAD) as Radians,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** Create a MEO orbit (GPS-like, ~20,200 km altitude) */
|
|
58
|
-
function createMeoOrbit(epoch: EpochUTC): ClassicalElements {
|
|
59
|
-
return new ClassicalElements({
|
|
60
|
-
epoch,
|
|
61
|
-
semimajorAxis: 26560 as Kilometers,
|
|
62
|
-
eccentricity: 0.01,
|
|
63
|
-
inclination: (55.0 * DEG2RAD) as Radians,
|
|
64
|
-
argPerigee: (45.0 * DEG2RAD) as Radians,
|
|
65
|
-
rightAscension: (120.0 * DEG2RAD) as Radians,
|
|
66
|
-
trueAnomaly: (30.0 * DEG2RAD) as Radians,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/** Create a GEO orbit (~35,786 km altitude) */
|
|
71
|
-
function createGeoOrbit(epoch: EpochUTC): ClassicalElements {
|
|
72
|
-
return new ClassicalElements({
|
|
73
|
-
epoch,
|
|
74
|
-
semimajorAxis: 42164 as Kilometers,
|
|
75
|
-
eccentricity: 0.0001,
|
|
76
|
-
inclination: (0.1 * DEG2RAD) as Radians,
|
|
77
|
-
argPerigee: (180.0 * DEG2RAD) as Radians,
|
|
78
|
-
rightAscension: (90.0 * DEG2RAD) as Radians,
|
|
79
|
-
trueAnomaly: (0.0 * DEG2RAD) as Radians,
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/** Create a HEO orbit (moderately eccentric, transfer orbit style) */
|
|
84
|
-
function createHeoOrbit(epoch: EpochUTC): ClassicalElements {
|
|
85
|
-
return new ClassicalElements({
|
|
86
|
-
epoch,
|
|
87
|
-
semimajorAxis: 24000 as Kilometers,
|
|
88
|
-
eccentricity: 0.3, // Moderate eccentricity (0.74 is too extreme for the algorithm)
|
|
89
|
-
inclination: (63.4 * DEG2RAD) as Radians,
|
|
90
|
-
argPerigee: (270.0 * DEG2RAD) as Radians,
|
|
91
|
-
rightAscension: (0.0 * DEG2RAD) as Radians,
|
|
92
|
-
trueAnomaly: (0.0 * DEG2RAD) as Radians,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/*
|
|
97
|
-
* ============================================================================
|
|
98
|
-
* Test Helpers
|
|
99
|
-
* ============================================================================
|
|
100
|
-
*/
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Create a sensor at a specified location
|
|
104
|
-
*/
|
|
105
|
-
function createSensor(location: 'eastCoast' | 'westCoast' | 'hawaii' = 'eastCoast'): GroundStation {
|
|
106
|
-
const locations = {
|
|
107
|
-
eastCoast: { lat: 41.75 as Degrees, lon: -70.54 as Degrees, alt: 0.1 as Kilometers },
|
|
108
|
-
westCoast: { lat: 34.0 as Degrees, lon: -118.0 as Degrees, alt: 0.3 as Kilometers },
|
|
109
|
-
hawaii: { lat: 20.71 as Degrees, lon: -156.26 as Degrees, alt: 3.055 as Kilometers },
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
const loc = locations[location];
|
|
113
|
-
|
|
114
|
-
return new GroundStation({
|
|
115
|
-
lat: loc.lat,
|
|
116
|
-
lon: loc.lon,
|
|
117
|
-
alt: loc.alt,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Generate an array of epochs at regular intervals
|
|
123
|
-
*/
|
|
124
|
-
function generateEpochs(startEpoch: EpochUTC, count: number, intervalSeconds: number): EpochUTC[] {
|
|
125
|
-
const epochs: EpochUTC[] = [];
|
|
126
|
-
|
|
127
|
-
for (let i = 0; i < count; i++) {
|
|
128
|
-
epochs.push(startEpoch.roll((intervalSeconds * i) as Seconds));
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
return epochs;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Generate perfect optical observations from a propagator
|
|
136
|
-
*/
|
|
137
|
-
function generateOpticalObservations(
|
|
138
|
-
propagator: Propagator,
|
|
139
|
-
sensor: GroundStation,
|
|
140
|
-
epochs: EpochUTC[],
|
|
141
|
-
): ObservationOptical[] {
|
|
142
|
-
return epochs.map((epoch) => {
|
|
143
|
-
const state = propagator.propagate(epoch);
|
|
144
|
-
const siteState = sensor.toJ2000(epoch.toDateTime());
|
|
145
|
-
const radec = RadecTopocentric.fromStateVector(state, siteState);
|
|
146
|
-
|
|
147
|
-
return new ObservationOptical(siteState, radec);
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/**
|
|
152
|
-
* Generate perfect radar observations from a propagator
|
|
153
|
-
*/
|
|
154
|
-
function generateRadarObservations(
|
|
155
|
-
propagator: Propagator,
|
|
156
|
-
sensor: GroundStation,
|
|
157
|
-
epochs: EpochUTC[],
|
|
158
|
-
): ObservationRadar[] {
|
|
159
|
-
return epochs.map((epoch) => {
|
|
160
|
-
const state = propagator.propagate(epoch);
|
|
161
|
-
const siteState = sensor.toJ2000(epoch.toDateTime());
|
|
162
|
-
const rae = RAE.fromStateVector(state, siteState);
|
|
163
|
-
|
|
164
|
-
return new ObservationRadar(siteState, rae);
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Create a slightly perturbed state for apriori testing
|
|
170
|
-
*/
|
|
171
|
-
function perturbState(state: J2000, posKm: number, velKmps: number): J2000 {
|
|
172
|
-
const perturbedPos = new Vector3D(
|
|
173
|
-
(state.position.x + posKm) as Kilometers,
|
|
174
|
-
(state.position.y + posKm * 0.5) as Kilometers,
|
|
175
|
-
(state.position.z - posKm * 0.3) as Kilometers,
|
|
176
|
-
);
|
|
177
|
-
const perturbedVel = new Vector3D(
|
|
178
|
-
(state.velocity.x + velKmps) as KilometersPerSecond,
|
|
179
|
-
(state.velocity.y - velKmps * 0.5) as KilometersPerSecond,
|
|
180
|
-
(state.velocity.z + velKmps * 0.3) as KilometersPerSecond,
|
|
181
|
-
);
|
|
182
|
-
|
|
183
|
-
return new J2000(state.epoch, perturbedPos, perturbedVel);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Validate state accuracy against truth
|
|
188
|
-
*/
|
|
189
|
-
function validateStateAccuracy(
|
|
190
|
-
computed: J2000,
|
|
191
|
-
truth: J2000,
|
|
192
|
-
posTolKm: number,
|
|
193
|
-
velTolKmps: number,
|
|
194
|
-
): void {
|
|
195
|
-
const posError = computed.position.subtract(truth.position).magnitude();
|
|
196
|
-
const velError = computed.velocity.subtract(truth.velocity).magnitude();
|
|
197
|
-
|
|
198
|
-
expect(posError).toBeLessThan(posTolKm);
|
|
199
|
-
expect(velError).toBeLessThan(velTolKmps);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/*
|
|
203
|
-
* ============================================================================
|
|
204
|
-
* Test Suite
|
|
205
|
-
* ============================================================================
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
|
-
// eslint-disable-next-line max-lines-per-function
|
|
209
|
-
describe('LevenbergMarquardtOD', () => {
|
|
210
|
-
/*
|
|
211
|
-
* ==========================================================================
|
|
212
|
-
* 1. PERFECT DATA ACCURACY TESTS (HIGHEST PRIORITY)
|
|
213
|
-
* ==========================================================================
|
|
214
|
-
*/
|
|
215
|
-
|
|
216
|
-
describe('Perfect Data Accuracy', () => {
|
|
217
|
-
describe('LEO Orbit (ISS-like)', () => {
|
|
218
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
219
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
220
|
-
const sensor = createSensor('eastCoast');
|
|
221
|
-
|
|
222
|
-
it('should converge with perfect optical observations', () => {
|
|
223
|
-
const epochs = generateEpochs(startEpoch, 10, 30); // 10 obs, 30s apart = 5 min arc
|
|
224
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
225
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
226
|
-
|
|
227
|
-
// Use truth state as apriori (perfect initial guess)
|
|
228
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
229
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
230
|
-
|
|
231
|
-
expect(result.converged).toBe(true);
|
|
232
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
233
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
it('should converge with perfect radar observations', () => {
|
|
237
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
238
|
-
const observations = generateRadarObservations(propagator, sensor, epochs);
|
|
239
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
240
|
-
|
|
241
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
242
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
243
|
-
|
|
244
|
-
expect(result.converged).toBe(true);
|
|
245
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
246
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
247
|
-
});
|
|
248
|
-
|
|
249
|
-
it('should converge with mixed optical + radar observations', () => {
|
|
250
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
251
|
-
const opticalObs = generateOpticalObservations(propagator, sensor, epochs.slice(0, 5));
|
|
252
|
-
const radarObs = generateRadarObservations(propagator, sensor, epochs.slice(5, 10));
|
|
253
|
-
const mixedObs: Observation[] = [...opticalObs, ...radarObs];
|
|
254
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
255
|
-
|
|
256
|
-
const lmOd = new LevenbergMarquardtOD(mixedObs, truthState);
|
|
257
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
258
|
-
|
|
259
|
-
expect(result.converged).toBe(true);
|
|
260
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
261
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
262
|
-
});
|
|
263
|
-
|
|
264
|
-
it('should converge with slightly perturbed apriori', () => {
|
|
265
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
266
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
267
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
268
|
-
const perturbedApriori = perturbState(truthState, 1.0, 0.001); // 1 km, 1 m/s perturbation
|
|
269
|
-
|
|
270
|
-
const lmOd = new LevenbergMarquardtOD(observations, perturbedApriori);
|
|
271
|
-
const result = lmOd.solve({ epsilon: 1e-6, printIter: false });
|
|
272
|
-
|
|
273
|
-
expect(result.converged).toBe(true);
|
|
274
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
|
|
278
|
-
describe('MEO Orbit (GPS-like)', () => {
|
|
279
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
280
|
-
const propagator = new KeplerPropagator(createMeoOrbit(startEpoch));
|
|
281
|
-
const sensor = createSensor('westCoast');
|
|
282
|
-
|
|
283
|
-
it('should converge with perfect optical observations', () => {
|
|
284
|
-
const epochs = generateEpochs(startEpoch, 8, 120); // 8 obs, 2 min apart = 16 min arc
|
|
285
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
286
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
287
|
-
|
|
288
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
289
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
290
|
-
|
|
291
|
-
expect(result.converged).toBe(true);
|
|
292
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
293
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
294
|
-
});
|
|
295
|
-
|
|
296
|
-
it('should converge with perfect radar observations', () => {
|
|
297
|
-
const epochs = generateEpochs(startEpoch, 8, 120);
|
|
298
|
-
const observations = generateRadarObservations(propagator, sensor, epochs);
|
|
299
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
300
|
-
|
|
301
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
302
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
303
|
-
|
|
304
|
-
expect(result.converged).toBe(true);
|
|
305
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
306
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
307
|
-
});
|
|
308
|
-
|
|
309
|
-
it('should converge with mixed observations', () => {
|
|
310
|
-
const epochs = generateEpochs(startEpoch, 8, 120);
|
|
311
|
-
const opticalObs = generateOpticalObservations(propagator, sensor, epochs.slice(0, 4));
|
|
312
|
-
const radarObs = generateRadarObservations(propagator, sensor, epochs.slice(4, 8));
|
|
313
|
-
const mixedObs: Observation[] = [...opticalObs, ...radarObs];
|
|
314
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
315
|
-
|
|
316
|
-
const lmOd = new LevenbergMarquardtOD(mixedObs, truthState);
|
|
317
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
318
|
-
|
|
319
|
-
expect(result.converged).toBe(true);
|
|
320
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
321
|
-
});
|
|
322
|
-
});
|
|
323
|
-
|
|
324
|
-
describe('GEO Orbit', () => {
|
|
325
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
326
|
-
const propagator = new KeplerPropagator(createGeoOrbit(startEpoch));
|
|
327
|
-
const sensor = createSensor('hawaii');
|
|
328
|
-
|
|
329
|
-
it('should converge with perfect optical observations', () => {
|
|
330
|
-
const epochs = generateEpochs(startEpoch, 6, 300); // 6 obs, 5 min apart = 30 min arc
|
|
331
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
332
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
333
|
-
|
|
334
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
335
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
336
|
-
|
|
337
|
-
expect(result.converged).toBe(true);
|
|
338
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
339
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
it('should converge with perfect radar observations', () => {
|
|
343
|
-
const epochs = generateEpochs(startEpoch, 6, 300);
|
|
344
|
-
const observations = generateRadarObservations(propagator, sensor, epochs);
|
|
345
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
346
|
-
|
|
347
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
348
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
349
|
-
|
|
350
|
-
expect(result.converged).toBe(true);
|
|
351
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
352
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
353
|
-
});
|
|
354
|
-
|
|
355
|
-
it('should converge with mixed observations', () => {
|
|
356
|
-
const epochs = generateEpochs(startEpoch, 6, 300);
|
|
357
|
-
const opticalObs = generateOpticalObservations(propagator, sensor, epochs.slice(0, 3));
|
|
358
|
-
const radarObs = generateRadarObservations(propagator, sensor, epochs.slice(3, 6));
|
|
359
|
-
const mixedObs: Observation[] = [...opticalObs, ...radarObs];
|
|
360
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
361
|
-
|
|
362
|
-
const lmOd = new LevenbergMarquardtOD(mixedObs, truthState);
|
|
363
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
364
|
-
|
|
365
|
-
expect(result.converged).toBe(true);
|
|
366
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
367
|
-
});
|
|
368
|
-
});
|
|
369
|
-
|
|
370
|
-
describe('HEO Orbit (Molniya-like)', () => {
|
|
371
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
372
|
-
const propagator = new KeplerPropagator(createHeoOrbit(startEpoch));
|
|
373
|
-
const sensor = createSensor('eastCoast');
|
|
374
|
-
|
|
375
|
-
it('should converge with perfect optical observations', () => {
|
|
376
|
-
const epochs = generateEpochs(startEpoch, 8, 180); // 8 obs, 3 min apart = 24 min arc
|
|
377
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
378
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
379
|
-
|
|
380
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
381
|
-
const result = lmOd.solve({ epsilon: 1e-5 }); // Slightly relaxed for HEO
|
|
382
|
-
|
|
383
|
-
expect(result.converged).toBe(true);
|
|
384
|
-
validateStateAccuracy(result.state, truthState, 1.0, 0.001); // Relaxed for HEO
|
|
385
|
-
});
|
|
386
|
-
|
|
387
|
-
it('should converge with perfect radar observations', () => {
|
|
388
|
-
const epochs = generateEpochs(startEpoch, 8, 180);
|
|
389
|
-
const observations = generateRadarObservations(propagator, sensor, epochs);
|
|
390
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
391
|
-
|
|
392
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
393
|
-
const result = lmOd.solve({ epsilon: 1e-5 });
|
|
394
|
-
|
|
395
|
-
expect(result.converged).toBe(true);
|
|
396
|
-
validateStateAccuracy(result.state, truthState, 1.0, 0.001);
|
|
397
|
-
});
|
|
398
|
-
|
|
399
|
-
it('should converge with mixed observations', () => {
|
|
400
|
-
const epochs = generateEpochs(startEpoch, 8, 180);
|
|
401
|
-
const opticalObs = generateOpticalObservations(propagator, sensor, epochs.slice(0, 4));
|
|
402
|
-
const radarObs = generateRadarObservations(propagator, sensor, epochs.slice(4, 8));
|
|
403
|
-
const mixedObs: Observation[] = [...opticalObs, ...radarObs];
|
|
404
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
405
|
-
|
|
406
|
-
const lmOd = new LevenbergMarquardtOD(mixedObs, truthState);
|
|
407
|
-
const result = lmOd.solve({ epsilon: 1e-5 });
|
|
408
|
-
|
|
409
|
-
expect(result.converged).toBe(true);
|
|
410
|
-
validateStateAccuracy(result.state, truthState, 1.0, 0.001);
|
|
411
|
-
});
|
|
412
|
-
});
|
|
413
|
-
});
|
|
414
|
-
|
|
415
|
-
/*
|
|
416
|
-
* ==========================================================================
|
|
417
|
-
* 2. OBSERVATION TYPE TESTS
|
|
418
|
-
* ==========================================================================
|
|
419
|
-
*/
|
|
420
|
-
|
|
421
|
-
describe('Observation Types', () => {
|
|
422
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
423
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
424
|
-
const sensor = createSensor('eastCoast');
|
|
425
|
-
|
|
426
|
-
describe('ObservationOptical (RA/Dec)', () => {
|
|
427
|
-
it('should handle varying numbers of observations (6, 10, 20)', () => {
|
|
428
|
-
const truthState = propagator.propagate(startEpoch);
|
|
429
|
-
|
|
430
|
-
for (const count of [6, 10, 20]) {
|
|
431
|
-
const epochs = generateEpochs(startEpoch, count, 30);
|
|
432
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
433
|
-
|
|
434
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
435
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
436
|
-
|
|
437
|
-
expect(result.converged).toBe(true);
|
|
438
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
439
|
-
}
|
|
440
|
-
});
|
|
441
|
-
|
|
442
|
-
it('should work with observations from multiple sensors', () => {
|
|
443
|
-
const sensor1 = createSensor('eastCoast');
|
|
444
|
-
const sensor2 = createSensor('westCoast');
|
|
445
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
446
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
447
|
-
|
|
448
|
-
const obs1 = generateOpticalObservations(propagator, sensor1, epochs.slice(0, 5));
|
|
449
|
-
const obs2 = generateOpticalObservations(propagator, sensor2, epochs.slice(5, 10));
|
|
450
|
-
const allObs = [...obs1, ...obs2];
|
|
451
|
-
|
|
452
|
-
const lmOd = new LevenbergMarquardtOD(allObs, truthState);
|
|
453
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
454
|
-
|
|
455
|
-
expect(result.converged).toBe(true);
|
|
456
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
457
|
-
});
|
|
458
|
-
});
|
|
459
|
-
|
|
460
|
-
describe('ObservationRadar (Range/Az/El)', () => {
|
|
461
|
-
it('should handle varying numbers of observations (6, 10, 20)', () => {
|
|
462
|
-
const truthState = propagator.propagate(startEpoch);
|
|
463
|
-
|
|
464
|
-
for (const count of [6, 10, 20]) {
|
|
465
|
-
const epochs = generateEpochs(startEpoch, count, 30);
|
|
466
|
-
const observations = generateRadarObservations(propagator, sensor, epochs);
|
|
467
|
-
|
|
468
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
469
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
470
|
-
|
|
471
|
-
expect(result.converged).toBe(true);
|
|
472
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
473
|
-
}
|
|
474
|
-
});
|
|
475
|
-
|
|
476
|
-
it('should work with observations from multiple sensors', () => {
|
|
477
|
-
const sensor1 = createSensor('eastCoast');
|
|
478
|
-
const sensor2 = createSensor('hawaii');
|
|
479
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
480
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
481
|
-
|
|
482
|
-
const obs1 = generateRadarObservations(propagator, sensor1, epochs.slice(0, 5));
|
|
483
|
-
const obs2 = generateRadarObservations(propagator, sensor2, epochs.slice(5, 10));
|
|
484
|
-
const allObs = [...obs1, ...obs2];
|
|
485
|
-
|
|
486
|
-
const lmOd = new LevenbergMarquardtOD(allObs, truthState);
|
|
487
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
488
|
-
|
|
489
|
-
expect(result.converged).toBe(true);
|
|
490
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
491
|
-
});
|
|
492
|
-
});
|
|
493
|
-
|
|
494
|
-
describe('Mixed Optical + Radar', () => {
|
|
495
|
-
it('should properly weight mixed observation types', () => {
|
|
496
|
-
const epochs = generateEpochs(startEpoch, 12, 30);
|
|
497
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
498
|
-
|
|
499
|
-
// Interleave optical and radar
|
|
500
|
-
const opticalObs = generateOpticalObservations(propagator, sensor, epochs.filter((_, i) => i % 2 === 0));
|
|
501
|
-
const radarObs = generateRadarObservations(propagator, sensor, epochs.filter((_, i) => i % 2 === 1));
|
|
502
|
-
const mixedObs: Observation[] = [...opticalObs, ...radarObs];
|
|
503
|
-
|
|
504
|
-
const lmOd = new LevenbergMarquardtOD(mixedObs, truthState);
|
|
505
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
506
|
-
|
|
507
|
-
expect(result.converged).toBe(true);
|
|
508
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
509
|
-
});
|
|
510
|
-
});
|
|
511
|
-
});
|
|
512
|
-
|
|
513
|
-
/*
|
|
514
|
-
* ==========================================================================
|
|
515
|
-
* 3. IOD INTEGRATION PIPELINES
|
|
516
|
-
* ==========================================================================
|
|
517
|
-
*/
|
|
518
|
-
|
|
519
|
-
describe('IOD Integration Pipelines', () => {
|
|
520
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
521
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
522
|
-
const sensor = createSensor('eastCoast');
|
|
523
|
-
|
|
524
|
-
describe('GaussIOD → LevenbergMarquardtOD', () => {
|
|
525
|
-
/**
|
|
526
|
-
* USE CASE: Have 3+ optical observations, need refined orbit
|
|
527
|
-
* 1. Run GaussIOD on first 3 observations → initial state
|
|
528
|
-
* 2. Run LM with all observations → refined state
|
|
529
|
-
* 3. Verify: LM produces better solution
|
|
530
|
-
*/
|
|
531
|
-
it('should refine GaussIOD solution with additional observations', () => {
|
|
532
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
533
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
534
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
535
|
-
|
|
536
|
-
// Step 1: Run GaussIOD on first 3 observations
|
|
537
|
-
const gaussIod = new GaussIOD();
|
|
538
|
-
const gaussResult = gaussIod.estimate(observations[0], observations[1], observations[2]);
|
|
539
|
-
|
|
540
|
-
expect(gaussResult).not.toBeNull();
|
|
541
|
-
if (!gaussResult) {
|
|
542
|
-
return;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
// Step 2: Run LM with GaussIOD result as apriori
|
|
546
|
-
const lmOd = new LevenbergMarquardtOD(observations, gaussResult);
|
|
547
|
-
const lmResult = lmOd.solve({ epsilon: 1e-6 });
|
|
548
|
-
|
|
549
|
-
// Step 3: Verify LM improves the solution
|
|
550
|
-
expect(lmResult.converged).toBe(true);
|
|
551
|
-
|
|
552
|
-
const gaussPosError = gaussResult.position.subtract(truthState.position).magnitude();
|
|
553
|
-
const lmPosError = lmResult.state.position.subtract(truthState.position).magnitude();
|
|
554
|
-
|
|
555
|
-
// LM should produce a better (or equal) solution
|
|
556
|
-
expect(lmPosError).toBeLessThanOrEqual(gaussPosError + 0.1); // Allow small tolerance
|
|
557
|
-
});
|
|
558
|
-
});
|
|
559
|
-
|
|
560
|
-
describe('GoodingIOD → LevenbergMarquardtOD', () => {
|
|
561
|
-
/**
|
|
562
|
-
* USE CASE: Have optical observations with range estimates
|
|
563
|
-
* 1. Run GoodingIOD with range hints → initial state
|
|
564
|
-
* 2. Run LM with all observations → refined state
|
|
565
|
-
* 3. Verify: LM produces better solution
|
|
566
|
-
*/
|
|
567
|
-
it('should refine GoodingIOD solution', () => {
|
|
568
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
569
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
570
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
571
|
-
|
|
572
|
-
// Range estimates for LEO
|
|
573
|
-
const rangeEstimate = 1500 as Kilometers;
|
|
574
|
-
|
|
575
|
-
// Step 1: Run GoodingIOD
|
|
576
|
-
const goodingIod = new GoodingIOD();
|
|
577
|
-
const goodingResult = goodingIod.estimate(
|
|
578
|
-
observations[0],
|
|
579
|
-
observations[1],
|
|
580
|
-
observations[2],
|
|
581
|
-
rangeEstimate,
|
|
582
|
-
rangeEstimate,
|
|
583
|
-
);
|
|
584
|
-
|
|
585
|
-
// Step 2: Run LM with GoodingIOD result as apriori
|
|
586
|
-
const lmOd = new LevenbergMarquardtOD(observations, goodingResult);
|
|
587
|
-
const lmResult = lmOd.solve({ epsilon: 1e-6 });
|
|
588
|
-
|
|
589
|
-
// Step 3: Verify LM converges and improves
|
|
590
|
-
expect(lmResult.converged).toBe(true);
|
|
591
|
-
|
|
592
|
-
const goodingPosError = goodingResult.position.subtract(truthState.position).magnitude();
|
|
593
|
-
const lmPosError = lmResult.state.position.subtract(truthState.position).magnitude();
|
|
594
|
-
|
|
595
|
-
// LM should produce a better (or equal) solution
|
|
596
|
-
expect(lmPosError).toBeLessThanOrEqual(goodingPosError + 0.1);
|
|
597
|
-
});
|
|
598
|
-
});
|
|
599
|
-
|
|
600
|
-
describe('Direct LM (Good Apriori from TLE)', () => {
|
|
601
|
-
/**
|
|
602
|
-
* USE CASE: Have prior orbit knowledge (e.g., from TLE catalog)
|
|
603
|
-
* 1. Use TLE-propagated state as apriori
|
|
604
|
-
* 2. Run LM with new observations
|
|
605
|
-
* 3. Fast convergence expected (< 10 iterations)
|
|
606
|
-
*/
|
|
607
|
-
it('should converge quickly with TLE-based apriori', () => {
|
|
608
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
609
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
610
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
611
|
-
|
|
612
|
-
// Use the truth state directly as apriori (best case)
|
|
613
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
614
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
615
|
-
|
|
616
|
-
expect(result.converged).toBe(true);
|
|
617
|
-
expect(result.iterations).toBeLessThan(10); // Should converge quickly
|
|
618
|
-
validateStateAccuracy(result.state, truthState, 0.01, 0.00001);
|
|
619
|
-
});
|
|
620
|
-
});
|
|
621
|
-
});
|
|
622
|
-
|
|
623
|
-
/*
|
|
624
|
-
* ==========================================================================
|
|
625
|
-
* 4. COVARIANCE VALIDATION
|
|
626
|
-
* ==========================================================================
|
|
627
|
-
*/
|
|
628
|
-
|
|
629
|
-
describe('Covariance Output', () => {
|
|
630
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
631
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
632
|
-
const sensor = createSensor('eastCoast');
|
|
633
|
-
|
|
634
|
-
it('should return positive diagonal elements', () => {
|
|
635
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
636
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
637
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
638
|
-
|
|
639
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
640
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
641
|
-
|
|
642
|
-
expect(result.converged).toBe(true);
|
|
643
|
-
|
|
644
|
-
const covMatrix = result.covariance.matrix;
|
|
645
|
-
|
|
646
|
-
// All diagonal elements should be positive
|
|
647
|
-
for (let i = 0; i < 6; i++) {
|
|
648
|
-
expect(covMatrix.elements[i][i]).toBeGreaterThan(0);
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
|
|
652
|
-
it('should return symmetric covariance matrix', () => {
|
|
653
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
654
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
655
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
656
|
-
|
|
657
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
658
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
659
|
-
|
|
660
|
-
const covMatrix = result.covariance.matrix;
|
|
661
|
-
|
|
662
|
-
// Matrix should be symmetric
|
|
663
|
-
for (let i = 0; i < 6; i++) {
|
|
664
|
-
for (let j = 0; j < 6; j++) {
|
|
665
|
-
expect(covMatrix.elements[i][j]).toBeCloseTo(covMatrix.elements[j][i], 10);
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
|
|
670
|
-
it('should decrease covariance with more observations', () => {
|
|
671
|
-
const truthState = propagator.propagate(startEpoch);
|
|
672
|
-
|
|
673
|
-
// Fewer observations
|
|
674
|
-
const epochs6 = generateEpochs(startEpoch, 6, 30);
|
|
675
|
-
const obs6 = generateOpticalObservations(propagator, sensor, epochs6);
|
|
676
|
-
const lmOd6 = new LevenbergMarquardtOD(obs6, truthState);
|
|
677
|
-
const result6 = lmOd6.solve({ epsilon: 1e-6 });
|
|
678
|
-
|
|
679
|
-
// More observations
|
|
680
|
-
const epochs20 = generateEpochs(startEpoch, 20, 30);
|
|
681
|
-
const obs20 = generateOpticalObservations(propagator, sensor, epochs20);
|
|
682
|
-
const lmOd20 = new LevenbergMarquardtOD(obs20, truthState);
|
|
683
|
-
const result20 = lmOd20.solve({ epsilon: 1e-6 });
|
|
684
|
-
|
|
685
|
-
/*
|
|
686
|
-
* Covariance trace should be smaller with more observations
|
|
687
|
-
* Calculate trace manually (sum of diagonal elements)
|
|
688
|
-
*/
|
|
689
|
-
const cov6 = result6.covariance.matrix;
|
|
690
|
-
const cov20 = result20.covariance.matrix;
|
|
691
|
-
let trace6 = 0;
|
|
692
|
-
let trace20 = 0;
|
|
693
|
-
|
|
694
|
-
for (let i = 0; i < 6; i++) {
|
|
695
|
-
trace6 += cov6.elements[i][i];
|
|
696
|
-
trace20 += cov20.elements[i][i];
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
expect(trace20).toBeLessThan(trace6);
|
|
700
|
-
});
|
|
701
|
-
});
|
|
702
|
-
|
|
703
|
-
/*
|
|
704
|
-
* ==========================================================================
|
|
705
|
-
* 5. CONVERGENCE BEHAVIOR
|
|
706
|
-
* ==========================================================================
|
|
707
|
-
*/
|
|
708
|
-
|
|
709
|
-
describe('Convergence Behavior', () => {
|
|
710
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
711
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
712
|
-
const sensor = createSensor('eastCoast');
|
|
713
|
-
|
|
714
|
-
describe('Successful Convergence', () => {
|
|
715
|
-
it('should set converged=true when RMS falls below epsilon', () => {
|
|
716
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
717
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
718
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
719
|
-
|
|
720
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
721
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
722
|
-
|
|
723
|
-
expect(result.converged).toBe(true);
|
|
724
|
-
expect(result.rms).toBeLessThan(1e-6);
|
|
725
|
-
});
|
|
726
|
-
|
|
727
|
-
it('should return reasonable iteration count', () => {
|
|
728
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
729
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
730
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
731
|
-
|
|
732
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
733
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
734
|
-
|
|
735
|
-
expect(result.iterations).toBeGreaterThanOrEqual(0);
|
|
736
|
-
expect(result.iterations).toBeLessThan(50);
|
|
737
|
-
});
|
|
738
|
-
});
|
|
739
|
-
|
|
740
|
-
describe('Max Iterations Reached', () => {
|
|
741
|
-
it('should return converged=false when max iterations reached', () => {
|
|
742
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
743
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
744
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
745
|
-
const badApriori = perturbState(truthState, 100, 0.1); // Very bad apriori
|
|
746
|
-
|
|
747
|
-
const lmOd = new LevenbergMarquardtOD(observations, badApriori);
|
|
748
|
-
const result = lmOd.solve({ maxIterations: 2, epsilon: 1e-12 }); // Very tight epsilon
|
|
749
|
-
|
|
750
|
-
// With only 2 iterations and very tight epsilon, unlikely to converge
|
|
751
|
-
expect(result.iterations).toBeLessThanOrEqual(2);
|
|
752
|
-
});
|
|
753
|
-
});
|
|
754
|
-
|
|
755
|
-
describe('Configuration Options', () => {
|
|
756
|
-
it('should respect custom maxIterations', () => {
|
|
757
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
758
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
759
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
760
|
-
|
|
761
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
762
|
-
const result = lmOd.solve({ maxIterations: 5, epsilon: 1e-12 });
|
|
763
|
-
|
|
764
|
-
expect(result.iterations).toBeLessThanOrEqual(5);
|
|
765
|
-
});
|
|
766
|
-
|
|
767
|
-
it('should converge faster with larger epsilon', () => {
|
|
768
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
769
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
770
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
771
|
-
const perturbedApriori = perturbState(truthState, 1.0, 0.001);
|
|
772
|
-
|
|
773
|
-
const lmOdTight = new LevenbergMarquardtOD(observations, perturbedApriori);
|
|
774
|
-
const resultTight = lmOdTight.solve({ epsilon: 1e-9 });
|
|
775
|
-
|
|
776
|
-
const lmOdLoose = new LevenbergMarquardtOD(observations, perturbedApriori);
|
|
777
|
-
const resultLoose = lmOdLoose.solve({ epsilon: 1e-3 });
|
|
778
|
-
|
|
779
|
-
// Looser epsilon should converge in fewer (or equal) iterations
|
|
780
|
-
expect(resultLoose.iterations).toBeLessThanOrEqual(resultTight.iterations);
|
|
781
|
-
});
|
|
782
|
-
});
|
|
783
|
-
});
|
|
784
|
-
|
|
785
|
-
/*
|
|
786
|
-
* ==========================================================================
|
|
787
|
-
* 6. ROBUSTNESS TESTS
|
|
788
|
-
* ==========================================================================
|
|
789
|
-
*/
|
|
790
|
-
|
|
791
|
-
describe('Robustness', () => {
|
|
792
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
793
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
794
|
-
const sensor = createSensor('eastCoast');
|
|
795
|
-
|
|
796
|
-
describe('Degraded Apriori', () => {
|
|
797
|
-
it('should converge with 10 km position error', () => {
|
|
798
|
-
const epochs = generateEpochs(startEpoch, 15, 30);
|
|
799
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
800
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
801
|
-
const perturbedApriori = perturbState(truthState, 10, 0.01);
|
|
802
|
-
|
|
803
|
-
const lmOd = new LevenbergMarquardtOD(observations, perturbedApriori);
|
|
804
|
-
const result = lmOd.solve({ epsilon: 1e-6, maxIterations: 100 });
|
|
805
|
-
|
|
806
|
-
expect(result.converged).toBe(true);
|
|
807
|
-
validateStateAccuracy(result.state, truthState, 1.0, 0.001);
|
|
808
|
-
});
|
|
809
|
-
|
|
810
|
-
it('should converge with 50 km position error (more iterations)', () => {
|
|
811
|
-
const epochs = generateEpochs(startEpoch, 20, 30);
|
|
812
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
813
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
814
|
-
const perturbedApriori = perturbState(truthState, 50, 0.05);
|
|
815
|
-
|
|
816
|
-
const lmOd = new LevenbergMarquardtOD(observations, perturbedApriori);
|
|
817
|
-
const result = lmOd.solve({ epsilon: 1e-5, maxIterations: 100 });
|
|
818
|
-
|
|
819
|
-
// May or may not converge depending on geometry, but should not crash
|
|
820
|
-
expect(result.rms).toBeDefined();
|
|
821
|
-
expect(result.iterations).toBeGreaterThan(0);
|
|
822
|
-
});
|
|
823
|
-
});
|
|
824
|
-
|
|
825
|
-
describe('Observation Geometry', () => {
|
|
826
|
-
it('should handle short arc observations (2 minutes)', () => {
|
|
827
|
-
const epochs = generateEpochs(startEpoch, 8, 15); // 8 obs, 15s apart = 2 min
|
|
828
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
829
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
830
|
-
|
|
831
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
832
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
833
|
-
|
|
834
|
-
expect(result.converged).toBe(true);
|
|
835
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
836
|
-
});
|
|
837
|
-
|
|
838
|
-
it('should handle longer arc observations (10 minutes)', () => {
|
|
839
|
-
/*
|
|
840
|
-
* 10 observations over 10 minutes tests extended arc handling
|
|
841
|
-
* Note: Very long arcs (30+ min) may require multiple-revolution or batch processing
|
|
842
|
-
*/
|
|
843
|
-
const epochs = generateEpochs(startEpoch, 10, 60); // 10 obs, 1 min apart = 10 min
|
|
844
|
-
// Use mixed observations for better observability
|
|
845
|
-
const opticalObs = generateOpticalObservations(propagator, sensor, epochs.slice(0, 5));
|
|
846
|
-
const radarObs = generateRadarObservations(propagator, sensor, epochs.slice(5));
|
|
847
|
-
const observations: Observation[] = [...opticalObs, ...radarObs];
|
|
848
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
849
|
-
|
|
850
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
851
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
852
|
-
|
|
853
|
-
expect(result.converged).toBe(true);
|
|
854
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
855
|
-
});
|
|
856
|
-
});
|
|
857
|
-
});
|
|
858
|
-
|
|
859
|
-
/*
|
|
860
|
-
* ==========================================================================
|
|
861
|
-
* 7. NUMERICAL STABILITY
|
|
862
|
-
* ==========================================================================
|
|
863
|
-
*/
|
|
864
|
-
|
|
865
|
-
describe('Numerical Stability', () => {
|
|
866
|
-
it('should handle near-circular orbits (e < 0.001)', () => {
|
|
867
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
868
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch)); // LEO has very low eccentricity
|
|
869
|
-
const sensor = createSensor('eastCoast');
|
|
870
|
-
|
|
871
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
872
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
873
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
874
|
-
|
|
875
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
876
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
877
|
-
|
|
878
|
-
expect(result.converged).toBe(true);
|
|
879
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
880
|
-
});
|
|
881
|
-
|
|
882
|
-
it('should handle highly eccentric orbits', () => {
|
|
883
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
884
|
-
const propagator = new KeplerPropagator(createHeoOrbit(startEpoch));
|
|
885
|
-
const sensor = createSensor('eastCoast');
|
|
886
|
-
|
|
887
|
-
const epochs = generateEpochs(startEpoch, 10, 120);
|
|
888
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
889
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
890
|
-
|
|
891
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
892
|
-
const result = lmOd.solve({ epsilon: 1e-5 });
|
|
893
|
-
|
|
894
|
-
expect(result.converged).toBe(true);
|
|
895
|
-
validateStateAccuracy(result.state, truthState, 1.0, 0.001);
|
|
896
|
-
});
|
|
897
|
-
|
|
898
|
-
it('should handle geostationary altitude', () => {
|
|
899
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
900
|
-
const propagator = new KeplerPropagator(createGeoOrbit(startEpoch));
|
|
901
|
-
const sensor = createSensor('hawaii');
|
|
902
|
-
|
|
903
|
-
const epochs = generateEpochs(startEpoch, 8, 300);
|
|
904
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
905
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
906
|
-
|
|
907
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
908
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
909
|
-
|
|
910
|
-
expect(result.converged).toBe(true);
|
|
911
|
-
validateStateAccuracy(result.state, truthState, 0.1, 0.0001);
|
|
912
|
-
});
|
|
913
|
-
});
|
|
914
|
-
|
|
915
|
-
/*
|
|
916
|
-
* ==========================================================================
|
|
917
|
-
* 8. CONSTRUCTOR AND CONFIGURATION
|
|
918
|
-
* ==========================================================================
|
|
919
|
-
*/
|
|
920
|
-
|
|
921
|
-
describe('Constructor and Configuration', () => {
|
|
922
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
923
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
924
|
-
const sensor = createSensor('eastCoast');
|
|
925
|
-
|
|
926
|
-
it('should sort observations by epoch', () => {
|
|
927
|
-
const epochs = generateEpochs(startEpoch, 5, 60);
|
|
928
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
929
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
930
|
-
|
|
931
|
-
// Shuffle observations
|
|
932
|
-
const shuffled = [observations[2], observations[0], observations[4], observations[1], observations[3]];
|
|
933
|
-
|
|
934
|
-
const lmOd = new LevenbergMarquardtOD(shuffled, truthState);
|
|
935
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
936
|
-
|
|
937
|
-
// Should still converge despite shuffled input
|
|
938
|
-
expect(result.converged).toBe(true);
|
|
939
|
-
});
|
|
940
|
-
|
|
941
|
-
it('should accept custom ForceModel', () => {
|
|
942
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
943
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
944
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
945
|
-
|
|
946
|
-
const customForceModel = new ForceModel().setGravity();
|
|
947
|
-
|
|
948
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState, customForceModel);
|
|
949
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
950
|
-
|
|
951
|
-
expect(result.converged).toBe(true);
|
|
952
|
-
});
|
|
953
|
-
|
|
954
|
-
it('should use default parameters correctly', () => {
|
|
955
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
956
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
957
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
958
|
-
|
|
959
|
-
// Use all defaults
|
|
960
|
-
const lmOd = new LevenbergMarquardtOD(observations, truthState);
|
|
961
|
-
const result = lmOd.solve();
|
|
962
|
-
|
|
963
|
-
expect(result.converged).toBe(true);
|
|
964
|
-
expect(result.state).toBeDefined();
|
|
965
|
-
expect(result.covariance).toBeDefined();
|
|
966
|
-
expect(result.rms).toBeDefined();
|
|
967
|
-
expect(result.iterations).toBeDefined();
|
|
968
|
-
});
|
|
969
|
-
});
|
|
970
|
-
|
|
971
|
-
/*
|
|
972
|
-
* ==========================================================================
|
|
973
|
-
* 9. FASTDERIVATIVES FLAG
|
|
974
|
-
* ==========================================================================
|
|
975
|
-
*/
|
|
976
|
-
|
|
977
|
-
describe('fastDerivatives Flag', () => {
|
|
978
|
-
const startEpoch = EpochUTC.fromDateTimeString('2024-01-01T12:00:00.000Z');
|
|
979
|
-
const propagator = new KeplerPropagator(createLeoOrbit(startEpoch));
|
|
980
|
-
const sensor = createSensor('eastCoast');
|
|
981
|
-
|
|
982
|
-
it('should converge with fastDerivatives=false (default)', () => {
|
|
983
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
984
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
985
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
986
|
-
|
|
987
|
-
const lmOd = new LevenbergMarquardtOD(
|
|
988
|
-
observations,
|
|
989
|
-
truthState,
|
|
990
|
-
undefined, // default force model
|
|
991
|
-
1e-5, // default posStep
|
|
992
|
-
1e-5, // default velStep
|
|
993
|
-
false, // fastDerivatives = false
|
|
994
|
-
);
|
|
995
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
996
|
-
|
|
997
|
-
expect(result.converged).toBe(true);
|
|
998
|
-
});
|
|
999
|
-
|
|
1000
|
-
it('should converge with fastDerivatives=true', () => {
|
|
1001
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
1002
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
1003
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
1004
|
-
|
|
1005
|
-
const lmOd = new LevenbergMarquardtOD(
|
|
1006
|
-
observations,
|
|
1007
|
-
truthState,
|
|
1008
|
-
undefined,
|
|
1009
|
-
1e-5,
|
|
1010
|
-
1e-5,
|
|
1011
|
-
true, // fastDerivatives = true
|
|
1012
|
-
);
|
|
1013
|
-
const result = lmOd.solve({ epsilon: 1e-6 });
|
|
1014
|
-
|
|
1015
|
-
expect(result.converged).toBe(true);
|
|
1016
|
-
});
|
|
1017
|
-
|
|
1018
|
-
it('should produce similar results with both modes', () => {
|
|
1019
|
-
const epochs = generateEpochs(startEpoch, 10, 30);
|
|
1020
|
-
const observations = generateOpticalObservations(propagator, sensor, epochs);
|
|
1021
|
-
const truthState = propagator.propagate(epochs[0]);
|
|
1022
|
-
|
|
1023
|
-
const lmOdSlow = new LevenbergMarquardtOD(observations, truthState, undefined, 1e-5, 1e-5, false);
|
|
1024
|
-
const resultSlow = lmOdSlow.solve({ epsilon: 1e-6 });
|
|
1025
|
-
|
|
1026
|
-
const lmOdFast = new LevenbergMarquardtOD(observations, truthState, undefined, 1e-5, 1e-5, true);
|
|
1027
|
-
const resultFast = lmOdFast.solve({ epsilon: 1e-6 });
|
|
1028
|
-
|
|
1029
|
-
// Both should converge
|
|
1030
|
-
expect(resultSlow.converged).toBe(true);
|
|
1031
|
-
expect(resultFast.converged).toBe(true);
|
|
1032
|
-
|
|
1033
|
-
// Results should be similar (within reasonable tolerance)
|
|
1034
|
-
const posDiff = resultSlow.state.position.subtract(resultFast.state.position).magnitude();
|
|
1035
|
-
|
|
1036
|
-
expect(posDiff).toBeLessThan(1.0); // Within 1 km
|
|
1037
|
-
});
|
|
1038
|
-
});
|
|
1039
|
-
});
|