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::squareDifference< T > Struct Template Reference

#include <utilityLHS.h>

Inheritance diagram for lhslib::squareDifference< T >:

Public Member Functions

operator() (const T &x, const T &y) const
 

Detailed Description

template<class T>
struct lhslib::squareDifference< T >

calculate the squared distance between two values. A type of std::binar_function.

Template Parameters
Tthe type of values for the Arg1, Arg2, and return

Member Function Documentation

◆ operator()()

template<class T >
T lhslib::squareDifference< T >::operator() ( const T &  x,
const T &  y 
) const
inline

Calculate the squared distance between two values

Parameters
xArg1
yArg2
Returns
the (x-y)*(x-y)

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