Class EllipseFunction

    • Constructor Detail

      • EllipseFunction

        public EllipseFunction​(java.lang.String name,
                               int nparm)
    • Method Detail

      • getInputDimension

        public int getInputDimension()
        Specified by:
        getInputDimension in interface Function
        Returns:
        the input dimension of the function
      • getOutputDimension

        public int getOutputDimension()
        Specified by:
        getOutputDimension in interface Function
        Returns:
        the output dimension of the function
      • getValue

        public double[] getValue​(double[] x)
        Specified by:
        getValue in interface FunctionND
        Parameters:
        x - input parameter array
        Returns:
        array of function values
      • getValue

        public double getValue​(double[] x,
                               int i)
        Specified by:
        getValue in interface FunctionND
        Parameters:
        x - input parameter array
        i - output index
        Returns:
        value of function
      • calculateEllipse

        public static java.util.List<de.gsi.dataset.spi.utils.DoublePoint> calculateEllipse​(double centerX,
                                                                                            double centerY,
                                                                                            double halfAxisA,
                                                                                            double halfAxisB,
                                                                                            double angle,
                                                                                            double steps)