40#ifndef G4SimplexDownhill
41#define G4SimplexDownhill_h
55 : currentValue(0.), target(tp), numberOfVariable(n)
67 G4double getValue( std::vector< G4double > x )
68 {
return target->GetValueOfMinimizingFunction( x ); }
71 std::vector< std::vector< G4double > > currentSimplex;
74 std::vector< G4double > currentHeights;
77 std::vector< G4double > calCentroid(
G4int );
81 std::vector< G4double > getReflectionPoint( std::vector< G4double > ,
82 std::vector< G4double > );
83 std::vector< G4double > getExpansionPoint( std::vector< G4double > ,
84 std::vector< G4double > );
85 std::vector< G4double > getContractionPoint( std::vector< G4double > ,
86 std::vector< G4double > );
96 G4int numberOfVariable;
103 G4int maximum_no_trial;
106 std::vector< G4double > minimumPoint;
109#include "G4SimplexDownhill.icc"
std::vector< G4double > GetMinimumPoint()
G4SimplexDownhill(T *tp, G4int n)