Gin
Public Member Functions | List of all members
Integrator Class Reference

Calculates the integral of a function defined by a series of points. More...

Public Member Functions

void clear ()
 
double getIntegral ()
 
void addPoint (double x, double y)
 
void addPoint (Point< double > point)
 
void addPoints (juce::Array< Point< double >> points)
 

Detailed Description

Calculates the integral of a function defined by a series of points.

Points must be added in increasing x order

Member Function Documentation

◆ clear()

void Integrator::clear ( )

◆ getIntegral()

double Integrator::getIntegral ( )

◆ addPoint() [1/2]

void Integrator::addPoint ( double  x,
double  y 
)

◆ addPoint() [2/2]

void Integrator::addPoint ( Point< double >  point)

◆ addPoints()

void Integrator::addPoints ( juce::Array< Point< double >>  points)

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