Class Stats1Plotter

java.lang.Object
uk.ac.starlink.ttools.plot2.layer.Stats1Plotter
All Implemented Interfaces:
Plotter<Stats1Plotter.StatsStyle>

public class Stats1Plotter extends Object implements Plotter<Stats1Plotter.StatsStyle>
Plotter to calculate and display univariate statistics of histogram-like data.
Since:
30 Sep 2016
Author:
Mark Taylor
  • Field Details

    • CONST_KEY

      public static final ReportKey<Double> CONST_KEY
      Report key for fitted multiplicative constant.
    • MEAN_KEY

      public static final ReportKey<Double> MEAN_KEY
      Report key for fitted mean.
    • STDEV_KEY

      public static final ReportKey<Double> STDEV_KEY
      Report key for fitted standard deviation.
    • FUNCTION_KEY

      public static final ReportKey<String> FUNCTION_KEY
      Report key for gaussian fit function.
    • BINSIZER_KEY

      public static final ConfigKey<BinSizer> BINSIZER_KEY
      Config key for equivalent histogram bar width.
    • NORMALISE_KEY

      public static final ConfigKey<Normalisation> NORMALISE_KEY
      Config key for normalisation.
    • SHOWMEAN_KEY

      public static final ConfigKey<Boolean> SHOWMEAN_KEY
      Config key to display a line at the mean value.
  • Constructor Details

    • Stats1Plotter

      public Stats1Plotter(FloatingCoord xCoord, boolean hasWeight, ConfigKey<Unit> unitKey)
      Constructor.
      Parameters:
      xCoord - X axis coordinate
      hasWeight - true if weights may be used
      unitKey - config key to select X axis physical units, or null if no unit selection required
  • Method Details