Examples of times()


Examples of DSP.filter.iir.Complex.times()

  public Complex evaluate( Complex c ) {
   
    Complex retval = new Complex( a[order] );
   
    for ( int i = order-1;  i >= 0;  i-- ) {
      retval = retval.times(c).plus( a[i] );
    }
   
    return retval;
  }
 
View Full Code Here

Examples of DSP.filter.iir.Complex.times()

   
    Complex c = Complex.exp( new Complex(0.0, -Omega ) );
   
    Complex N = new Complex( a[order]*order );
    for ( int i = order-1;  i >= 0;  i-- ) {
      N = N.times(c).plus( a[i]*i );
    }
   
    Complex D = evaluate( c );

    return ( N.over(D) ).real();
View Full Code Here

Examples of Hexel.math.Vector3d.times()

  @Override
  public void render(GL2 gl) {

    Vector3d dir = getDirectionLooking();
    dir.times(10);

    Vector3i closestBlock = this.thingBridge
        .getClosestNonEmptyBlockOnVector(
            new Vector3d(getCameraX(), getCameraY(), getCameraZ()), dir);
View Full Code Here

Examples of Jama.Matrix.times()

        return new Dimension( dcRaw.getImageWidth(), dcRaw.getImageHeight() );
    }

    static Matrix pseudoinverse(Matrix m) {
        Matrix t = m.transpose();
        return t.times(m).inverse().times(t).transpose();
    }

    // specialized to 3 x 3 so we can use the real inverse matrix instead of a pseudoinverse
    // some day we should go back to the more generic 3 x 4 case
    static void cam_xyz_coeff(float cam_xyz[][], float rgb_cam[][], float pre_mul[]) {
View Full Code Here

Examples of Jama.Matrix.times()

            {0, sXYZ[1] / tXYZ[1], 0},
            {0, 0, sXYZ[2] / tXYZ[2]}
        };

        // total tansform
        return B.times(new Matrix(diag)).times(B.inverse()).getArrayFloat();
    }

    public static double saturation(double r, double g, double b) {
        double min = Math.min(r, Math.min(g, b));
        double max = Math.max(r, Math.max(g, b));
View Full Code Here

Examples of Jama.Matrix.times()

        for (int t = 1000; t < 40000; t+= (0.001 * t)) {
            Matrix B = new Matrix(chromaticAdaptation(t, refT, caMethod));
            Matrix combo = XYZtoRGB.times(B.times(RGBtoZYX));

            gray = combo.times(gray);

            double r = clip(gray.get(0, 0));
            double g = clip(gray.get(1, 0));
            double b = clip(gray.get(2, 0));

View Full Code Here

Examples of Jama.Matrix.times()

        double avg;
        double K = data.getTimeSeries().size() - data.getL() + 1; //количество векторов вложения
        List<Double> covarianceList = new ArrayList<Double>();
        double transp[][] = transpositionMatrix(data.getInclosureMatrix());
        Matrix S = new Matrix(data.getInclosureMatrix()).times(new Matrix(transp));
        S = S.times(1.0 / K); //ковариационная матрица
        int size = S.getColumnDimension();
        int N = size + size - 1;
        int n;
        for (int k = 0; k < N; k++) {
            if ((k % 2) == 0) {
View Full Code Here

Examples of ai.domain.interval.IntervalExpressionSemantics.times()

  @Test
  public void testMultiply(){
    IntervalExpressionSemantics sem = new IntervalExpressionSemantics();
    //bottom
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.times(Interval.BOTTOM, Interval.BOTTOM));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.times(Interval.BOTTOM, new Interval(-1,2)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.times(Interval.BOTTOM, new Interval(1, Double.POSITIVE_INFINITY)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.times(Interval.BOTTOM, new Interval(Double.NEGATIVE_INFINITY, 1)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.times(Interval.BOTTOM, new Interval(Double.NEGATIVE_INFINITY, Double.POSITIVE_INFINITY)));
    org.junit.Assert.assertEquals(Interval.BOTTOM, sem.times(new Interval(-1,2), Interval.BOTTOM));
View Full Code Here

Examples of aspect.util.Complex.times()

        fft(odd);

        for (int i = 0; i < l / 2; i++) {
            float kth = Trig.toDegrees(-2 * i * Trig.PI / l);
            Complex wk = new Complex(Trig.cos(kth), Trig.sin(kth));
            c[i] = even[i].plus(wk.times(odd[i]));
            c[i + l / 2] = even[i].minus(wk.times(odd[i]));
        }
    }

    public static void ifft(Complex[] c) {
View Full Code Here

Examples of aspect.util.Vector3.times()

       
        if (magnitude == Float.NaN) {
            return Vector3.zero();
        }
       
        return direction.times(magnitude);
    }
}
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.