public class

PowerFunction2D

extends Object
implements Function2D
java.lang.Object
   ↳ org.jfree.data.function.PowerFunction2D

Class Overview

A function of the form y = a * x ^ b.

Summary

Public Constructors
PowerFunction2D(double a, double b)
Creates a new power function.
Public Methods
double getValue(double x)
Returns the value of the function for a given input ('x').
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.jfree.data.function.Function2D

Public Constructors

public PowerFunction2D (double a, double b)

Creates a new power function.

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

Public Methods

public double getValue (double x)

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

Parameters
x the x-value.
Returns
  • The value.