QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SamplerCauchy Class Reference

Cauchy Sampler. More...

#include <hybridsimulatedannealingfunctors.hpp>

+ Collaboration diagram for SamplerCauchy:

Public Member Functions

 SamplerCauchy (unsigned long seed=SeedGenerator::instance().get())
 
void operator() (Array &newPoint, const Array &currentPoint, const Array &temp)
 

Protected Attributes

std::mt19937 generator_
 
std::cauchy_distribution< Realdistribution_
 

Detailed Description

Cauchy Sampler.

Sample from cauchy distribution. This means that the parameter space must have support on the positive whole real line. For lower dimensions it could be faster than the Gaussian sampler, specially when combined with the Cauchy temperature.

Definition at line 155 of file hybridsimulatedannealingfunctors.hpp.

Constructor & Destructor Documentation

◆ SamplerCauchy()

SamplerCauchy ( unsigned long  seed = SeedGenerator::instance().get())
explicit

Definition at line 158 of file hybridsimulatedannealingfunctors.hpp.

Member Function Documentation

◆ operator()()

void operator() ( Array newPoint,
const Array currentPoint,
const Array temp 
)

Definition at line 161 of file hybridsimulatedannealingfunctors.hpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ generator_

std::mt19937 generator_
protected

Definition at line 168 of file hybridsimulatedannealingfunctors.hpp.

◆ distribution_

std::cauchy_distribution<Real> distribution_
protected

Definition at line 169 of file hybridsimulatedannealingfunctors.hpp.