Class Expression

  • All Implemented Interfaces:
    CleanUpHandler, Destroyable, ErrorProvider, GlobalInfoSupporter, LoggingLevelHandler, LoggingSupporter, OptionHandler, QuickInfoSupporter, SizeOfHandler, Serializable

    public class Expression
    extends AbstractPlotProcessorWithBuffer<Point2D>
    Applies a mathematical function to the data (separately for X and Y).
    Values can be accessed using 'xN' and 'yN' with 'N' being the 1-based index in the current window.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
     
    -plot-name-suffix <java.lang.String> (property: plotNameSuffix)
        The suffix for the plot name; if left empty, the plot container automatically 
        becomes an OVERLAY.
        default: 
     
    -window-size <int> (property: windowSize)
        The window size to use.
        default: 1
        minimum: 1
     
    -x-expression <adams.parser.MathematicalExpressionText> (property: XExpression)
        The expression to apply to the X data.
        default: x1
     
    -y-expression <adams.parser.MathematicalExpressionText> (property: YExpression)
        The expression to apply to the Y data.
        default: y1
     
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • Expression

        public Expression()
    • Method Detail

      • setWindowSize

        public void setWindowSize​(int value)
        Sets the polynomial order.
        Parameters:
        value - the order
      • getWindowSize

        public int getWindowSize()
        Returns the polynominal order.
        Returns:
        the order
      • windowSizeTipText

        public String windowSizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setXExpression

        public void setXExpression​(MathematicalExpressionText value)
        Sets the expression for the X values.
        Parameters:
        value - the expression
      • getXExpression

        public MathematicalExpressionText getXExpression()
        Returns the expression for the X values.
        Returns:
        the expression
      • XExpressionTipText

        public String XExpressionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setYExpression

        public void setYExpression​(MathematicalExpressionText value)
        Sets the expression for the Y values.
        Parameters:
        value - the expression
      • getYExpression

        public MathematicalExpressionText getYExpression()
        Returns the expression for the Y values.
        Returns:
        the expression
      • YExpressionTipText

        public String YExpressionTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.