Examples of minimum()


Examples of ca.eandb.jmist.math.Box3.minimum()

    double min, max, mid;
    int split = start;
    clip.reset();
    for (int i = start; i < end; i++) {
      Box3 bound = getBoundingBox(items[i]);
      min = bound.minimum(axis);
      max = bound.maximum(axis);
      mid = 0.5 * (min + max);
      if (mid < plane) {
        if (max > clip.left) {
          clip.left = max;
View Full Code Here

Examples of ca.eandb.jmist.math.Interval.minimum()

      if (I.isEmpty()) {
        return null;
      }

      Vector3    n    = LENS_SPHERE.center().vectorTo(init.pointAt(I.minimum()));
      Vector3    r    = Optics.reflect(init.direction(), n);

      Ray3    ray    = new Ray3(Point3.ORIGIN, r);
      Color    color  = getWhite();
      double    pdf    = 1.0 / 16.0;
View Full Code Here

Examples of ca.eandb.jmist.math.Interval.minimum()

  @Override
  public void intersect(Ray3 ray, IntersectionRecorder recorder) {
    ensureReady();
    Interval I = boundingBox.intersect(ray).intersect(recorder.interval());
    if (!I.isEmpty()) {
      intersectNode(root, I.minimum(), I.maximum(), ray, recorder);
    }
  }

  private void intersectNode(int node, double near, double far, Ray3 ray,
      IntersectionRecorder recorder) {
View Full Code Here

Examples of ca.eandb.jmist.math.Interval.minimum()

  public void intersect(Ray3 ray, IntersectionRecorder recorder) {

    Interval I = this.sphere.intersect(ray);

    if (!I.isEmpty()) {
      recorder.record(super.newIntersection(ray, I.minimum(), true));
      recorder.record(super.newIntersection(ray, I.maximum(), false));
    }

  }
View Full Code Here

Examples of ca.eandb.jmist.math.Interval.minimum()

    Interval I = SUPERELLIPSOID_BOUNDING_BOX.intersect(ray);

    if (I.isEmpty())
      return vt;

    vt.add(I.minimum());
    vt.add(I.maximum());

    for (int i = 0; i < PLANES.length; i++) {
      double t = PLANES[i].intersect(ray);
      if (I.contains(t))
View Full Code Here

Examples of flanagan.analysis.Stat.minimum()

    // Calculate transformed data statistics
    private void transformedDataStatistics(double[] data){
        // Calculate transformed data statistics
        Stat st2 = new Stat(data);
        this.transformedMinimum = st2.minimum();
        this.transformedMaximum = st2.maximum();
        this.transformedMedian = st2.median();
        this.transformedRange = this.transformedMaximum - this.transformedMinimum;
        this.transformedMean = st2.mean();
        this.transformedStandardDeviation = st2.standardDeviation();
View Full Code Here

Examples of flanagan.analysis.Stat.minimum()

   // Calculate standardized transformed data statistics
   private void standardizedTransformedDataStatistics(double[] data){
       // Calculate standardized transformed data statistics
        Stat st3 = new Stat(data);
        this.standardizedTransformedMinimum = st3.minimum();
        this.standardizedTransformedMaximum = st3.maximum();
        this.standardizedTransformedMedian = st3.median();
        this.standardizedTransformedRange = this.standardizedTransformedMaximum - this.standardizedTransformedMinimum;
        this.standardizedTransformedMean = 0.0;
        this.standardizedTransformedStandardDeviation = 1.0;
View Full Code Here

Examples of flanagan.analysis.Stat.minimum()

            }
            for(int i=0; i<1001; i++){
                xerre[i] = cspe.interpolate(respe[i]);
            }
            Stat stat = new Stat(xerre);
            this.minimumAerror = stat.minimum();
            this.maximumAerror = stat.maximum();
            this.meanAerror = stat.mean();
            this.sdAerror = stat.standardDeviation();
        }
    }
View Full Code Here

Examples of flanagan.analysis.Stat.minimum()

      // Returns minima of the rows
        public double[] rowMinima(){
            double[] minima = new double[this.numberOfRows];
            for(int i=0; i<this.numberOfRows; i++){
                Stat st = new Stat(this.matrix[i]);
                minima[i] = st.minimum();
            }

            return minima;
        }
View Full Code Here

Examples of flanagan.analysis.Stat.minimum()

                double[] hold = new double[this.numberOfRows];
                for(int j=0; j<this.numberOfRows; j++){
                    hold[i] = this.matrix[j][i];
                }
                Stat st = new Stat(hold);
                minima[i] = st.minimum();
            }

            return minima;
        }
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.