Class DLPredictionPlotInfoFX

java.lang.Object
dataPlotsFX.data.TDDataInfoFX
dataPlotsFX.data.generic.GenericLinePlotInfo
rawDeepLearningClassifier.dataPlotFX.DLPredictionPlotInfoFX

public class DLPredictionPlotInfoFX extends GenericLinePlotInfo
Plot the raw probability information. Plots multiple probability lines. Note that the TDDataInfo can handle drawing lines for different channels but we are drawing for different prediction classes here.
Author:
Jamie Macaulay
  • Constructor Details

  • Method Details

    • drawDataUnit

      public javafx.scene.shape.Polygon drawDataUnit(int plotNumber, PamDataUnit pamDataUnit, javafx.scene.canvas.GraphicsContext g, double scrollStart, TDProjectorFX tdProjector, int type)
      Description copied from class: TDDataInfoFX
      Draw a data unit.
      Overrides:
      drawDataUnit in class GenericLinePlotInfo
      Parameters:
      pamDataUnit - data unit to draw
      g - graphicsContext handle to draw on
      type - flag for which type of symbol to draw. e.g normal or highlighted.
      Returns:
      polygon of area drawn on.
    • getSymbolChooser

      public TDSymbolChooserFX getSymbolChooser()
      Overrides:
      getSymbolChooser in class GenericLinePlotInfo
      Returns:
      a class containing functions to chose a symbol to plot.
    • getColor

      public LineInfo getColor(int i)
      Get the color.
      Specified by:
      getColor in class GenericLinePlotInfo
      Parameters:
      i - - the prediction index
      Returns:
      the color for that prediciton
    • getDataValue

      public Double getDataValue(PamDataUnit pamDataUnit)
      Description copied from class: TDDataInfoFX
      Gets a value for a specific data unit which should be in the same units as the scale information. This will then be converted into a plot position by the TDGraph.
      Overrides:
      getDataValue in class GenericLinePlotInfo
      Returns:
      data value or null if this data point should not be plotted.
    • getGraphSettingsPane

      public DLPredictionPane getGraphSettingsPane()
      Description copied from class: TDDataInfoFX
      Return a hiding settings node which will get incorporated into a larger tabbed sliding pane.
      Overrides:
      getGraphSettingsPane in class TDDataInfoFX
      Returns:
      sliding dialog component.
    • getDlControl

      public DLControl getDlControl()
    • getStoredSettings

      public Serializable getStoredSettings()
      Description copied from class: TDDataInfoFX
      Get an object that will be packed up with the serialised settings when information about a plot get's stored.
      The Object MUST implement serializable and ideally also cloneable or it will go belly up !
      This only gets called when settings are to be saved so there is no need to keep parameters this returns up to date except right at settings save time (when this is called)
      Overrides:
      getStoredSettings in class TDDataInfoFX
      Returns:
      serializable object to save.
    • setStoredSettings

      public boolean setStoredSettings(Serializable storedSettings)
      Description copied from class: TDDataInfoFX
      Set settings which have been read back from storage (the psf file). Assume these are of the right type and cast into whatever is needed !
      Overrides:
      setStoredSettings in class TDDataInfoFX
      Returns:
      true if all OK.
    • getDlPredParams

      public DLPredDisplayParams getDlPredParams()
      Get the DL prediction params.
      Returns:
      the params
    • getDetData

      public double[][] getDetData(PamDataUnit pamDataUnit)
      Description copied from class: GenericLinePlotInfo
      Get the line data. Each double[] is a separate line with N evenly spaced data points.
      Specified by:
      getDetData in class GenericLinePlotInfo
      Parameters:
      pamDataUnit - - the pam data unit containing the data.
      Returns:
      the line data.
    • notifyChange

      public void notifyChange(int changeType)
      Notifications from the PamController are passed to this function.
      Overrides:
      notifyChange in class GenericLinePlotInfo
      Parameters:
      changeType - - notification flag.