Extreme Optimization > User's Guide > Mathematics Library > Curves > Comparing Curves and RealFunction Delegates

Extreme Optimization User's Guide

User's Guide

Up: Curves Next: Curve Fitting Previous: Piecewise Curves and Cubic Splines Contents

Comparing Curve classes and RealFunction delegates

The classes that inherit from Curve on the one hand, and the RealFunction delegate on the other, both represent mathematical functions of one real parameter that return a real number. You can create a RealFunction from a Curve by encapsulating the curve's ValueAt method. You can create a Curve from a RealFunction using the GeneralCurve class, which takes a RealFunction delegate in its constructor. They are different in nature, however.

A Curve object represents a function in the mathematical sense. Very often, a specific type of function has special properties that enable many calculations to be performed more efficiently. For example: polynomials are easy to integrate and differentiate. To use a numerical integration algorithm for polynomials would be inefficient.

A RealFunction delegate encapsulates only the calculation of the value of the function. This is sufficient for most applications. The equation solver classes, as well as the classes that implement numerical integration and differentiation algorithms, all use a RealFunction delegate. These operations can be controlled to a great degree. Note that the Curve class has methods corresponding to these applications, but the degree of control is much more limited.

In other words: a Curve object focuses on the mathematical function as a mathematical object, and the specific mathematical properties and relationships of a particular type of curve. A RealFunction delegate isolates the primary purpose of a mathematical function - to calculate a return value for a given argument - into a simple data type. This allows it to fit easily into any of a number of more complex procedures for solving numerical problems.

In summary:

Up: Curves Next: Curve Fitting Previous: Piecewise Curves and Cubic Splines Contents

Overview
Introduction
Features
Documentation
QuickStart Samples
Sample Applications
Downloads
Get it now!
Download trial version
How to Buy
Information
Resources
Contact Us
Search

"The Extreme Optimization Statistics Library for .NET is a major boon for those doing statistical work in .NET. I strongly recommend this product."
- Marc Brooks

"I have made it my mission to institutionalize the value of good API design.  I strongly believe that this is key to making developers more productive and happy on our platform. It is clear that you value good API design in your work, and take to heart developer productivity and synergy with the .NET framework."
- Brad Abrams,
Lead Program Manager, Microsoft.

This is a partial list of companies who are using our libraries:
ABB Robotics
Allstate
Applied Materials
Arcam
Astra Schedule
Babson College
Canadian Council on Learning
Canyon Associates
Caxton Associates
CECity
Constellation Energy
CreditSights
DeepOcean
Duke University
Dynamotive
Elecsoft
Engelhard Corporation
Epcor
Equipoise Software
Galileo International
GAM UK
Gammex
GlaxoSmithKline
Global Matrix
The Hartford
Infinera Corporation
Intel
JDS Uniphase
LaBranche & Co.
Learning & Skills Council
Jacobs Consultancy
Litman Gregory
Lucas Systems
Malvern Instruments
Medrio
Merck & Co.
Mintera.
Monitor Software
MorningStar
NanoString Technologies
Paletta Invent
Parametric Portfolio Associates
Prosanos
RATA Associates
RiskShield
Ramboll
Standard & Poor's
Strategic Analysis Corporation
Univ. of Alicante
Univ. of South Carolina
vielife
Xerox
US Army