Helios++
Helios software for LiDAR simulations
fluxionum::Function< A, B > Class Template Referenceabstract

Abstract class representing a function. More...

#include <Function.h>

Inheritance diagram for fluxionum::Function< A, B >:

Public Member Functions

 Function ()=default
 
virtual B eval (A const &x)=0
 Evaluate the function \(f(x)=y\). More...
 
operator() (A const &x)
 Evaluate the function \(f(x)=y\). More...
 

Detailed Description

template<typename A, typename B>
class fluxionum::Function< A, B >

Abstract class representing a function.

Author
Alberto M. Esmoris Pena
Version
1.0

A function \(f\) is a rule of assignment \(r\), together with a set \(B\) that contains the image set of \(r\). The domain \(A\) of the rule \(r\) is also called the domain of the function \(f\); the image set of \(r\) is also called the image set of \(f\); and the set \(B\) is called the range of \(f\).

A rule of assignment is a subset \(r\) of the cartesian product \(C \times D\) of two sets, having the property that each element of C appears as the first coordinate of at most one ordered pair belonging to \(r\).

Template Parameters
AThe domain of the function
BThe range of the function
See also
Topology, James Munkres, second edition PEARSON (pages 13 and 14)

Constructor & Destructor Documentation

◆ Function()

template<typename A , typename B >
fluxionum::Function< A, B >::Function ( )
default

@bried Function default constructor

Member Function Documentation

◆ eval()

◆ operator()()

template<typename A , typename B >
B fluxionum::Function< A, B >::operator() ( A const &  x)
inline

Evaluate the function \(f(x)=y\).

Parameters
xThe input from the domain: \(x \in A\)
Returns
The output from the range: \(y \in B\)
See also
fluxionum::Function::eval

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