Examples of Sinc


Examples of org.apache.commons.math3.analysis.function.Sinc

        }
    }

    @Test
    public void testStandardTransformFunction() {
        final UnivariateFunction f = new Sinc();
        final double min = -FastMath.PI;
        final double max = FastMath.PI;
        final DftNormalization[] norm;
        norm = DftNormalization.values();
        final TransformType[] type;
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Sinc

        return validDataSize[i];
    }

    @Override
    UnivariateFunction getValidFunction() {
        return new Sinc();
    }
View Full Code Here

Examples of org.apache.commons.math3.analysis.function.Sinc

    public void testSinc() {
        BivariateFunction div = new Divide();
        UnivariateFunction sin = new Sin();
        UnivariateFunction id = new Identity();
        UnivariateFunction sinc1 = FunctionUtils.combine(div, sin, id);
        UnivariateFunction sinc2 = new Sinc();

        for (int i = 0; i < 10; i++) {
            double x = Math.random();
            Assert.assertEquals(sinc1.value(x), sinc2.value(x), EPS);
        }
    }
View Full Code Here

Examples of vash.operation.Sinc

  @Test public void testSinN1x0()    {this.runTest("4002", new Sine(-1, 0, XCoord()));}
  @Test public void testSinPIx0()    {this.runTest("4003", new Sine(3.14, 0, XCoord()));}
  @Test public void testSinPIxPI2()  {this.runTest("4004", new Sine(3.14, 1.57, XCoord()));}

  // sinc
  @Test public void testSinc1x0()    {this.runTest("4100", new Sinc(1, 0, XCoord()));}
View Full Code Here

Examples of vash.operation.Sinc

  @Test public void testSinPIx0()    {this.runTest("4003", new Sine(3.14, 0, XCoord()));}
  @Test public void testSinPIxPI2()  {this.runTest("4004", new Sine(3.14, 1.57, XCoord()));}

  // sinc
  @Test public void testSinc1x0()    {this.runTest("4100", new Sinc(1, 0, XCoord()));}
  @Test public void testSinc0x0()    {this.runTest("4101", new Sinc(0, 0, XCoord()));}
View Full Code Here

Examples of vash.operation.Sinc

  @Test public void testSinPIxPI2()  {this.runTest("4004", new Sine(3.14, 1.57, XCoord()));}

  // sinc
  @Test public void testSinc1x0()    {this.runTest("4100", new Sinc(1, 0, XCoord()));}
  @Test public void testSinc0x0()    {this.runTest("4101", new Sinc(0, 0, XCoord()));}
  @Test public void testSincN1x0()  {this.runTest("4102", new Sinc(-1, 0, XCoord()));}
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.