Geant4  10.00.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
G4SimplexDownhill< T > Class Template Reference

Public Member Functions

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

Private Member Functions

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

Private Attributes

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

Constructor & Destructor Documentation

G4SimplexDownhill ( T *  tp,
G4int  n 
)

Member Function Documentation

G4double GetMinimum ( )
std::vector< G4double > GetMinimumPoint ( )
G4double getValue ( std::vector< G4double x)
private
void initialize ( )
private
void calHeights ( )
private
std::vector< G4double > calCentroid ( G4int  )
private
G4bool isItGoodEnough ( )
private
std::vector< G4double > getReflectionPoint ( std::vector< G4double ,
std::vector< G4double  
)
private
std::vector< G4double > getExpansionPoint ( std::vector< G4double ,
std::vector< G4double  
)
private
std::vector< G4double > getContractionPoint ( std::vector< G4double ,
std::vector< G4double  
)
private
void doDownhill ( )
private

Member Data Documentation

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