org.esa.beam.util.math
Interface FX


public interface FX

Represents a function f(x).

Version:
$Revision$ $Date$
Author:
Norman Fomferra

Field Summary
static FX ONE
          The function f(x) = 1
static FX X
          The function f(x) = x
static FX XX
          The function f(x) = x 2
static FX XXX
          The function f(x) = x 3
static FX XXXX
          The function f(x) = x 4
 
Method Summary
 double f(double x)
          The function y = f(x)
 String getCCodeExpr()
          Returns the function as C code expression, e.g.
 

Field Detail

XXXX

static final FX XXXX
The function f(x) = x 4


XXX

static final FX XXX
The function f(x) = x 3


XX

static final FX XX
The function f(x) = x 2


X

static final FX X
The function f(x) = x


ONE

static final FX ONE
The function f(x) = 1

Method Detail

f

double f(double x)
The function y = f(x)

Parameters:
x - the x parameter
Returns:
y

getCCodeExpr

String getCCodeExpr()
Returns the function as C code expression, e.g. "pow(x, 3) * y"

Returns:
the C code


Copyright © 2002-2012 Brockmann Consult GmbH. All Rights Reserved.