17 #ifndef __IPSDKMATH_SIGMOIDKERNEL_H__ 18 #define __IPSDKMATH_SIGMOIDKERNEL_H__ 27 namespace clustering {
75 const ipReal64 dotProd = boost::numeric::ublas::inner_prod(v0, v1);
77 return std::tanh(_gamma*dotProd + _theta);
96 #endif // __IPSDKMATH_SIGMOIDKERNEL_H__ ipReal64 getTheta() const
retrieve theta additive factor for sigmoid function
Definition: SigmoidKernel.h:58
Definition of import/export macro for library.
Defines the IPSDK_FORCEINLINE.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
ipReal64 getGamma() const
retrieve gamma multiplicative factor for sigmoid function
Definition: SigmoidKernel.h:52
double ipReal64
Base types definition.
Definition: BaseTypes.h:57
ipReal64 _gamma
gamma multiplicative factor for sigmoid function
Definition: SigmoidKernel.h:83
boost::numeric::ublas::vector< ipReal64 > Vector
vector type associated to library
Definition: LinearAlgebraTypes.h:36
Definition: SigmoidKernel.h:32
#define IPSDKMATH_API
Import/Export macro for library IPSDKMath.
Definition: IPSDKMathExports.h:27
ipReal64 _theta
theta additive factor for sigmoid function
Definition: SigmoidKernel.h:86
Predefined types for clustering algorithm.
Utility functions for linear algebra operations management.