Package pal.misc

Class Parameterized.ParameterizedBase

  • Enclosing interface:
    Parameterized

    public abstract static class Parameterized.ParameterizedBase
    extends PalObjectListener.EventGenerator
    A Utility class for using as the superclass to subclasses which are based on double arrays
    • Constructor Detail

      • ParameterizedBase

        protected ParameterizedBase​(double[] parameters,
                                    double[] lowerLimits,
                                    double[] upperLimits,
                                    double[] defaultValues)
        Builds a parameterized objects around a set of double arrays
      • ParameterizedBase

        protected ParameterizedBase​(double[] parameters,
                                    double[] lowerLimits,
                                    double[] upperLimits,
                                    double[] defaultValues,
                                    double[] parametersSE)
        Builds a parameterized objects around a set of double arrays
      • ParameterizedBase

        protected ParameterizedBase()
        Builds a parameterized objects around a set of double arrays. The user needs to call setSource() at some point to correctly set things up
    • Method Detail

      • setSource

        protected void setSource​(double[] parameters,
                                 double[] lowerLimits,
                                 double[] upperLimits,
                                 double[] defaultValues)
        Set's the base arrays...
        Throws:
        java.lang.IllegalArgumentException - if arrays are not the same size
      • setSource

        protected void setSource​(double[] parameters,
                                 double[] lowerLimits,
                                 double[] upperLimits,
                                 double[] defaultValues,
                                 double[] parametersSE)
        Set's the base arrays...
        Throws:
        java.lang.IllegalArgumentException - if arrays are not the same size
      • getNumParameters

        public int getNumParameters()
      • setParameter

        public void setParameter​(double param,
                                 int n)
      • getParameter

        public double getParameter​(int n)
      • setParameterSE

        public void setParameterSE​(double paramSE,
                                   int n)
      • getLowerLimit

        public double getLowerLimit​(int n)
      • getUpperLimit

        public double getUpperLimit​(int n)
      • getDefaultValue

        public double getDefaultValue​(int n)
      • getParametersSE

        protected double[] getParametersSE()