Geant4-11
Public Member Functions | Private Member Functions | Private Attributes
G4SimplexDownhill< T > Class Template Reference

#include <G4SimplexDownhill.hh>

Public Member Functions

 G4SimplexDownhill (T *tp, G4int n)
 
G4double GetMinimum ()
 
std::vector< G4doubleGetMinimumPoint ()
 
 ~G4SimplexDownhill ()
 

Private Member Functions

std::vector< G4doublecalCentroid (G4int)
 
void calHeights ()
 
void doDownhill ()
 
std::vector< G4doublegetContractionPoint (std::vector< G4double >, std::vector< G4double >)
 
std::vector< G4doublegetExpansionPoint (std::vector< G4double >, std::vector< G4double >)
 
std::vector< G4doublegetReflectionPoint (std::vector< G4double >, std::vector< G4double >)
 
G4double getValue (std::vector< G4double > x)
 
void init ()
 
void initialize ()
 
G4bool isItGoodEnough ()
 

Private Attributes

G4double alpha
 
G4double beta
 
std::vector< G4doublecurrentHeights
 
std::vector< std::vector< G4double > > currentSimplex
 
G4double currentValue
 
G4double gamma
 
G4double max_ratio
 
G4double max_se
 
G4int maximum_no_trial
 
G4bool minimized
 
std::vector< G4doubleminimumPoint
 
G4int numberOfVariable
 
T * target
 

Detailed Description

template<class T>
class G4SimplexDownhill< T >

Definition at line 47 of file G4SimplexDownhill.hh.

Constructor & Destructor Documentation

◆ G4SimplexDownhill()

template<class T >
G4SimplexDownhill< T >::G4SimplexDownhill ( T *  tp,
G4int  n 
)
inline

◆ ~G4SimplexDownhill()

template<class T >
G4SimplexDownhill< T >::~G4SimplexDownhill ( )

Member Function Documentation

◆ calCentroid()

template<class T >
std::vector< G4double > G4SimplexDownhill< T >::calCentroid ( G4int  )
private

◆ calHeights()

template<class T >
void G4SimplexDownhill< T >::calHeights ( )
private

◆ doDownhill()

template<class T >
void G4SimplexDownhill< T >::doDownhill ( )
private

◆ getContractionPoint()

template<class T >
std::vector< G4double > G4SimplexDownhill< T >::getContractionPoint ( std::vector< G4double ,
std::vector< G4double  
)
private

◆ getExpansionPoint()

template<class T >
std::vector< G4double > G4SimplexDownhill< T >::getExpansionPoint ( std::vector< G4double ,
std::vector< G4double  
)
private

◆ GetMinimum()

template<class T >
G4double G4SimplexDownhill< T >::GetMinimum ( )

◆ GetMinimumPoint()

template<class T >
std::vector< G4double > G4SimplexDownhill< T >::GetMinimumPoint ( )

◆ getReflectionPoint()

template<class T >
std::vector< G4double > G4SimplexDownhill< T >::getReflectionPoint ( std::vector< G4double ,
std::vector< G4double  
)
private

◆ getValue()

template<class T >
G4double G4SimplexDownhill< T >::getValue ( std::vector< G4double x)
inlineprivate

Definition at line 65 of file G4SimplexDownhill.hh.

66 {
67 return target->GetValueOfMinimizingFunction(x);
68 }

References G4SimplexDownhill< T >::target.

◆ init()

template<class T >
void G4SimplexDownhill< T >::init ( )
private

◆ initialize()

template<class T >
void G4SimplexDownhill< T >::initialize ( )
private

◆ isItGoodEnough()

template<class T >
G4bool G4SimplexDownhill< T >::isItGoodEnough ( )
private

Field Documentation

◆ alpha

template<class T >
G4double G4SimplexDownhill< T >::alpha
private

Definition at line 97 of file G4SimplexDownhill.hh.

◆ beta

template<class T >
G4double G4SimplexDownhill< T >::beta
private

Definition at line 98 of file G4SimplexDownhill.hh.

◆ currentHeights

template<class T >
std::vector<G4double> G4SimplexDownhill< T >::currentHeights
private

Definition at line 74 of file G4SimplexDownhill.hh.

◆ currentSimplex

template<class T >
std::vector<std::vector<G4double> > G4SimplexDownhill< T >::currentSimplex
private

Definition at line 71 of file G4SimplexDownhill.hh.

◆ currentValue

template<class T >
G4double G4SimplexDownhill< T >::currentValue
private

Definition at line 75 of file G4SimplexDownhill.hh.

◆ gamma

template<class T >
G4double G4SimplexDownhill< T >::gamma
private

Definition at line 99 of file G4SimplexDownhill.hh.

◆ max_ratio

template<class T >
G4double G4SimplexDownhill< T >::max_ratio
private

Definition at line 101 of file G4SimplexDownhill.hh.

◆ max_se

template<class T >
G4double G4SimplexDownhill< T >::max_se
private

Definition at line 100 of file G4SimplexDownhill.hh.

◆ maximum_no_trial

template<class T >
G4int G4SimplexDownhill< T >::maximum_no_trial
private

Definition at line 102 of file G4SimplexDownhill.hh.

◆ minimized

template<class T >
G4bool G4SimplexDownhill< T >::minimized
private

Definition at line 103 of file G4SimplexDownhill.hh.

◆ minimumPoint

template<class T >
std::vector<G4double> G4SimplexDownhill< T >::minimumPoint
private

Definition at line 105 of file G4SimplexDownhill.hh.

◆ numberOfVariable

template<class T >
G4int G4SimplexDownhill< T >::numberOfVariable
private

Definition at line 95 of file G4SimplexDownhill.hh.

◆ target

template<class T >
T* G4SimplexDownhill< T >::target
private

Definition at line 93 of file G4SimplexDownhill.hh.

Referenced by G4SimplexDownhill< T >::getValue().


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