Examples of PowerFunction2D


Examples of org.jfree.data.function.PowerFunction2D

    /**
     * Some tests for the constructor.
     */
    public void testConstructor() {
        PowerFunction2D f = new PowerFunction2D(1.0, 2.0);
        assertEquals(1.0, f.getA(), EPSILON);
        assertEquals(2.0, f.getB(), EPSILON);
    }
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * For datasets, the equals() method just checks keys and values.
     */
    public void testEquals() {
        PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
        PowerFunction2D f2 = new PowerFunction2D(1.0, 2.0);
        assertTrue(f1.equals(f2));
        f1 = new PowerFunction2D(2.0, 3.0);
        assertFalse(f1.equals(f2));
        f2 = new PowerFunction2D(2.0, 3.0);
        assertTrue(f1.equals(f2));
    }
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {
        PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
        PowerFunction2D f2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(f1);
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * Objects that are equal should have the same hash code otherwise FindBugs
     * will tell on us...
     */
    public void testHashCode() {
        PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
        PowerFunction2D f2 = new PowerFunction2D(1.0, 2.0);
        assertEquals(f1.hashCode(), f2.hashCode());
    }
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * Some tests for the constructor.
     */
    public void testConstructor() {
        PowerFunction2D f = new PowerFunction2D(1.0, 2.0);
        assertEquals(1.0, f.getA(), EPSILON);
        assertEquals(2.0, f.getB(), EPSILON);
    }
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * For datasets, the equals() method just checks keys and values.
     */
    public void testEquals() {
        PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
        PowerFunction2D f2 = new PowerFunction2D(1.0, 2.0);
        assertTrue(f1.equals(f2));
        f1 = new PowerFunction2D(2.0, 3.0);
        assertFalse(f1.equals(f2));
        f2 = new PowerFunction2D(2.0, 3.0);
        assertTrue(f1.equals(f2));
    }
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * Serialize an instance, restore it, and check for equality.
     */
    public void testSerialization() {
        PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
        PowerFunction2D f2 = null;

        try {
            ByteArrayOutputStream buffer = new ByteArrayOutputStream();
            ObjectOutput out = new ObjectOutputStream(buffer);
            out.writeObject(f1);
View Full Code Here

Examples of org.jfree.data.function.PowerFunction2D

    /**
     * Objects that are equal should have the same hash code otherwise FindBugs
     * will tell on us...
     */
    public void testHashCode() {
        PowerFunction2D f1 = new PowerFunction2D(1.0, 2.0);
        PowerFunction2D f2 = new PowerFunction2D(1.0, 2.0);
        assertEquals(f1.hashCode(), f2.hashCode());
    }
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.