Patate Lib  0.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Grenaille::ConstantWeightKernel< _Scalar > Class Template Reference

Inherits Grenaille::Concept::WeightKernelConcept< _Scalar >.

Detailed Description

template<typename _Scalar>
class Grenaille::ConstantWeightKernel< _Scalar >

Concept::WeightKernelConcept returning a constant value.

Public Types

typedef _Scalar Scalar
 Scalar type defined outside the class.
 
- Public Types inherited from Grenaille::Concept::WeightKernelConcept< _Scalar >
typedef _Scalar Scalar
 

Public Member Functions

 ConstantWeightKernel (const Scalar &_value=Scalar(1.))
 Default constructor that could be used to set the returned value.
 
void setValue (const Scalar &_value)
 Set the returned value.
 
Scalar f (const Scalar &) const
 Return the constant value.
 
Scalar df (const Scalar &) const
 Return \( 0 \).
 
Scalar ddf (const Scalar &) const
 Return \( 0 \).
 
- Public Member Functions inherited from Grenaille::Concept::WeightKernelConcept< _Scalar >
Scalar f (const Scalar &x) const
 Apply the weighting kernel to the scalar value \(f(x)\).
 
Scalar df (const Scalar &x) const
 Apply the first derivative of the weighting kernel to the scalar value \(f'(x)\).
 
Scalar ddf (const Scalar &x) const
 Apply the second derivative of the weighting kernel to the scalar value \(f''(x)\).