Examples of EstimatedParameter


Examples of org.apache.commons.math.estimation.EstimatedParameter

  }

  @Override
  public void setUp() {
    p1 = new EstimatedParameter("p1", 1.0);
    p2 = new EstimatedParameter("p2", 2.0);
  }
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

                              double[] theoreticalMinParams) {
      this.m = m;
      this.n = startParams.length;
      parameters = new EstimatedParameter[n];
      for (int i = 0; i < n; ++i) {
        parameters[i] = new EstimatedParameter("p" + i, startParams[i]);
      }
      this.theoreticalStartCost = theoreticalStartCost;
      this.theoreticalMinCost   = theoreticalMinCost;
      this.theoreticalMinParams = theoreticalMinParams;
      this.costAccuracy         = 1.0e-8;
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

        }
        jacobian[j][j] = 2;
      }

      for (int j = 0; j < n; ++j) {
        EstimatedParameter vj = parameters[j];
        double temp = vj.getEstimate();
        if (temp == 0) {
          temp = 1;
          prod = 1;
          for (int k = 0; k < n; ++k) {
            if (k != j) {
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

    super(name);
  }

  public void testConstruction() {

    EstimatedParameter p1 = new EstimatedParameter("p1", 1.0);
    assertTrue(p1.getName().equals("p1"));
    checkValue(p1.getEstimate(), 1.0);
    assertTrue(! p1.isBound());

    EstimatedParameter p2 = new EstimatedParameter("p2", 2.0, true);
    assertTrue(p2.getName().equals("p2"));
    checkValue(p2.getEstimate(), 2.0);
    assertTrue(p2.isBound());

  }
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

  }

  public void testBound() {

    EstimatedParameter p = new EstimatedParameter("p", 0.0);
    assertTrue(! p.isBound());
    p.setBound(true);
    assertTrue(p.isBound());
    p.setBound(false);
    assertTrue(! p.isBound());

  }
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

  }

  public void testEstimate() {

    EstimatedParameter p = new EstimatedParameter("p", 0.0);
    checkValue(p.getEstimate(), 0.0);

    for (double e = 0.0; e < 10.0; e += 0.5) {
      p.setEstimate(e);
      checkValue(p.getEstimate(), e);
    }

  }
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

    public TrajectoryDeterminationProblem(double t0,
                                          double  x0Guess, double  y0Guess,
                                          double vx0Guess, double vy0Guess) {
        this.t0 = t0;
         x0 = new EstimatedParameter( "x0",  x0Guess);
         y0 = new EstimatedParameter( "y0",  y0Guess);
        vx0 = new EstimatedParameter("vx0", vx0Guess);
        vy0 = new EstimatedParameter("vy0", vy0Guess);

        // inform the base class about the parameters
        addParameter(x0);
        addParameter(y0);
        addParameter(vx0);
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

                              double[] theoreticalMinParams) {
      this.m = m;
      this.n = startParams.length;
      parameters = new EstimatedParameter[n];
      for (int i = 0; i < n; ++i) {
        parameters[i] = new EstimatedParameter("p" + i, startParams[i]);
      }
      this.theoreticalStartCost = theoreticalStartCost;
      this.theoreticalMinCost   = theoreticalMinCost;
      this.theoreticalMinParams = theoreticalMinParams;
      this.costAccuracy         = 1.0e-8;
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

  }

  @Override
  public void setUp() {
    p1 = new EstimatedParameter("p1", 1.0);
    p2 = new EstimatedParameter("p2", 2.0);
  }
View Full Code Here

Examples of org.apache.commons.math.estimation.EstimatedParameter

    super(name);
  }

  public void testConstruction() {

    EstimatedParameter p1 = new EstimatedParameter("p1", 1.0);
    assertTrue(p1.getName().equals("p1"));
    checkValue(p1.getEstimate(), 1.0);
    assertTrue(! p1.isBound());

    EstimatedParameter p2 = new EstimatedParameter("p2", 2.0, true);
    assertTrue(p2.getName().equals("p2"));
    checkValue(p2.getEstimate(), 2.0);
    assertTrue(p2.isBound());

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.