Class DistanceEstimator


  • public class DistanceEstimator
    extends java.lang.Object
    This class calculates the distance estimation for a given star. In the constructor, the estimator of the PDF of the distance to be used is specified, and can be reused for several stars. Several parameters controlling how the estimation should be done can be passed through an optional Map
    Author:
    eutrilla
    • Constructor Detail

      • DistanceEstimator

        public DistanceEstimator()
    • Method Detail

      • getDistanceCdf

        public double[][] getDistanceCdf​(StarVariables star)
      • getDistanceModulusCdf

        public double[][] getDistanceModulusCdf​(StarVariables star)
      • distanceToModulus

        protected double distanceToModulus​(double r)
      • getDouble

        protected double getDouble​(java.lang.String key,
                                   java.util.Map<java.lang.String,​java.lang.String> parameters,
                                   double defaultValue)
      • getInt

        protected int getInt​(java.lang.String key,
                             java.util.Map<java.lang.String,​java.lang.String> parameters,
                             int defaultValue)
      • getBoolean

        protected boolean getBoolean​(java.lang.String key,
                                     java.util.Map<java.lang.String,​java.lang.String> parameters,
                                     boolean defaultValue)