Package samer.units

Class Histogram

  • java.lang.Object
    • Viewable
      • samer.units.Histogram
  • All Implemented Interfaces:
    Task


    public class Histogram
    extends Viewable
    implements Task
    This actually builds several histograms in parallel: one for each element of a Vec or double array. A IMap provides the mapping from element values to histogram bins. The result is a Matrix, each row of which is the histogram for the corresponding element of the input vector.
    • Constructor Detail

      • Histogram

        public Histogram(Vec input,
                         int binCount)
    • Method Detail

      • getBinMatrix

        public Matrix getBinMatrix()
      • getLikelihoodVector

        public VVector getLikelihoodVector()
      • getLikelihoodSignal

        public VDouble getLikelihoodSignal()
      • starting

        public void starting()
        Specified by:
        starting in interface Task
      • stopping

        public void stopping()
        Specified by:
        stopping in interface Task
      • run

        public void run()
        Specified by:
        run in interface Task
      • clear

        public void clear()
      • normalise

        public double[] normalise()
      • dispose

        public void dispose()
        Specified by:
        dispose in interface Task
      • getViewer

        public Viewer getViewer()
      • getCommands

        public void getCommands(Registry r)
      • execute

        public void execute(java.lang.String cmd,
                            Environment env)
                     throws java.lang.Exception
        Throws:
        java.lang.Exception