Latin Hypercube Samples (lhs)  1.0
R, C++, and Rcpp code to generate Latin hypercube samples
All Classes Namespaces Files Functions Variables Typedefs Macros Pages
lhslib::invert< T, W > Struct Template Reference

#include <utilityLHS.h>

Inheritance diagram for lhslib::invert< T, W >:

Public Member Functions

operator() (const T &x) const
 

Detailed Description

template<class T, class W>
struct lhslib::invert< T, W >

A unary_function to invert a number in a STL algorithm

Template Parameters
Tthe type of number to invert
Wthe type of the result. (normally a double or float)

Member Function Documentation

◆ operator()()

template<class T , class W >
W lhslib::invert< T, W >::operator() ( const T &  x) const
inline

A unary_function to invert a number

Parameters
xthe object to invert
Returns
the inverse of x

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