org.jfree.data.function

Class PowerFunction2D

public class PowerFunction2D extends Object implements Function2D

A function of the form y = a * x ^ b.
Constructor Summary
PowerFunction2D(double a, double b)
Creates a new power function.
Method Summary
doublegetValue(double x)
Returns the value of the function for a given input ('x').

Constructor Detail

PowerFunction2D

public PowerFunction2D(double a, double b)
Creates a new power function.

Parameters: a the 'a' coefficient. b the 'b' coefficient.

Method Detail

getValue

public double getValue(double x)
Returns the value of the function for a given input ('x').

Parameters: x the x-value.

Returns: The value.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.