dng_1d_inverse Class Reference

A dng_1d_function that represents the inverse of another dng_1d_function. More...

#include <dng_1d_function.h>

Inheritance diagram for dng_1d_inverse:

dng_1d_function

List of all members.


Public Member Functions

 dng_1d_inverse (const dng_1d_function &f)
virtual bool IsIdentity () const
 Returns true if this function is the map x -> y such that x == y for all x . That is if Evaluate(x) == x for all x.
virtual real64 Evaluate (real64 x) const
virtual real64 EvaluateInverse (real64 y) const

Protected Attributes

const dng_1d_functionfFunction

Detailed Description

A dng_1d_function that represents the inverse of another dng_1d_function.

Member Function Documentation

real64 dng_1d_inverse::Evaluate ( real64  x  )  const [virtual]

Return the mapping for value x. This method must be implemented by a derived class of dng_1d_function and the derived class determines the lookup method and function used.

Parameters:
x A value between 0.0 and 1.0 (inclusive).
Return values:
Mapped value for x

Implements dng_1d_function.

References dng_1d_function::EvaluateInverse().

real64 dng_1d_inverse::EvaluateInverse ( real64  y  )  const [virtual]

Return the reverse mapped value for y. This method can be implemented by derived classes. The default implementation uses Newton's method to solve for x such that Evaluate(x) == y.

Parameters:
y A value to reverse map. Should be within the range of the function implemented by this dng_1d_function .
Return values:
A value x such that Evaluate(x) == y (to very close approximation).

Reimplemented from dng_1d_function.

References dng_1d_function::Evaluate().


The documentation for this class was generated from the following files:

Copyright © 2006-2009 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google