« GPCorrelation » : différence entre les versions
Ligne 56 : | Ligne 56 : | ||
<syntaxhighlight lang="XML"> | <syntaxhighlight lang="XML"> | ||
... | <!--Type of matrix:--> | ||
<String name="matrixType">CORRELATION</String> | |||
<!--Type of parameters:--> | |||
<String name="type">LOF</String> | |||
<!--LOF types:--> | |||
<String name="lofType">LVLH</String> | |||
<!--Absolute velocity:--> | |||
<Boolean name="velocityType">true</Boolean> | |||
<Real name="Sigma_x" unit="m">1.0E1</Real> | |||
<Real name="Rho_x/y">5.0E-1</Real> | |||
<Real name="Rho_x/z">0.0E0</Real> | |||
<Real name="Rho_x/vx">0.0E0</Real> | |||
<Real name="Rho_x/vy">0.0E0</Real> | |||
<Real name="Rho_x/vz">0.0E0</Real> | |||
<Real name="Sigma_y" unit="m">2.0E4</Real> | |||
<Real name="Rho_y/z">0.0E0</Real> | |||
<Real name="Rho_y/vx">0.0E0</Real> | |||
<Real name="Rho_y/vy">0.0E0</Real> | |||
<Real name="Rho_y/vz">0.0E0</Real> | |||
<Real name="Sigma_z" unit="m">3.0E4</Real> | |||
<Real name="Rho_z/vx">0.0E0</Real> | |||
<Real name="Rho_z/vy">0.0E0</Real> | |||
<Real name="Rho_z/vz">0.0E0</Real> | |||
<Real name="Sigma_vx" unit="m/s">1.0E2</Real> | |||
<Real name="Rho_vx/vy">0.0E0</Real> | |||
<Real name="Rho_vx/vz">0.0E0</Real> | |||
<Real name="Sigma_vy" unit="m/s">2.0E2</Real> | |||
<Real name="Rho_vy/vz">0.0E0</Real> | |||
<Real name="Sigma_vz" unit="m/s">3.0E2</Real> | |||
</syntaxhighlight> | </syntaxhighlight> |
Version du 13 décembre 2021 à 16:16
How to call it
For using the GPCorrelation class, the developer has only to create such an object as is:
gpCor = new GPCorrelation();
or:
gpCor = new GPCorrelation("widgetId", "MyMatrix");
Display
We will get:
By selecting the type of parameters, we may enter data for correlation/covariance matrix for Keplerian/Cartesian/LOF cartesians parameters. The different displays will be:
- In case of Keplerian parameters:
- In case of cartesian parameters:
- In case of LOF cartesian parameters:
So we may have a covariance matrix rather than a correlation one:
If the initial correlation (resp. covariance) matrix is not null, a specific pop-up window will appear to ask for the type of conversion. A bit as for the GPOrbit widget, it will be possible to do this conversion between correlation and covariance matrices (but not between the different type of parameters) using a kind of “pivot” notion.
How to use it
Therei no exactly corresponding correlation/covariance matrices inside PATRIUS but GENOPUS gives some utility classes and methods to use them.
...
How it is stored
Here is the XML format:
<!--Type of matrix:-->
<String name="matrixType">CORRELATION</String>
<!--Type of parameters:-->
<String name="type">LOF</String>
<!--LOF types:-->
<String name="lofType">LVLH</String>
<!--Absolute velocity:-->
<Boolean name="velocityType">true</Boolean>
<Real name="Sigma_x" unit="m">1.0E1</Real>
<Real name="Rho_x/y">5.0E-1</Real>
<Real name="Rho_x/z">0.0E0</Real>
<Real name="Rho_x/vx">0.0E0</Real>
<Real name="Rho_x/vy">0.0E0</Real>
<Real name="Rho_x/vz">0.0E0</Real>
<Real name="Sigma_y" unit="m">2.0E4</Real>
<Real name="Rho_y/z">0.0E0</Real>
<Real name="Rho_y/vx">0.0E0</Real>
<Real name="Rho_y/vy">0.0E0</Real>
<Real name="Rho_y/vz">0.0E0</Real>
<Real name="Sigma_z" unit="m">3.0E4</Real>
<Real name="Rho_z/vx">0.0E0</Real>
<Real name="Rho_z/vy">0.0E0</Real>
<Real name="Rho_z/vz">0.0E0</Real>
<Real name="Sigma_vx" unit="m/s">1.0E2</Real>
<Real name="Rho_vx/vy">0.0E0</Real>
<Real name="Rho_vx/vz">0.0E0</Real>
<Real name="Sigma_vy" unit="m/s">2.0E2</Real>
<Real name="Rho_vy/vz">0.0E0</Real>
<Real name="Sigma_vz" unit="m/s">3.0E2</Real>