Xmipp
v3.23.11-Nereus
|
#include <angular_commonline.h>
Public Member Functions | |
EulerSolver (int dim, int pop, const Matrix1D< int > &newAlreadyOptimized, const Matrix1D< double > &newCurrentSolution, const MultidimArray< int > &newImgIdx, const Prog_Angular_CommonLine *newParent) | |
double | EnergyFunction (double trial[], bool &bAtSolution) |
double | similarityBetweenTwoLines (int imgi, int imgj) |
void | setShow (bool newShow) |
Public Member Functions inherited from DESolver | |
DESolver (int dim, int popSize) | |
Empty constructor. More... | |
DESolver (const DESolver &)=delete | |
DESolver & | operator= (const DESolver &)=delete |
virtual | ~DESolver (void) |
Destructor. More... | |
void | Setup (double min[], double max[], int deStrategy, double diffScale, double crossoverProb) |
Setup() must be called before solve to set min, max, strategy etc. More... | |
virtual bool | Solve (int maxGenerations) |
int | Dimension () const |
Return dimension. More... | |
int | Population () const |
Return population. More... | |
double | Energy () const |
Call these functions after Solve() to get results. More... | |
double * | Solution (void) |
Return best solution. More... | |
int | Generations () const |
Return the number of generations. More... | |
Public Attributes | |
bool | show |
int | NToSolve |
int | Ndim |
int | Nimg |
double | roti |
double | tilti |
double | psii |
double | rotj |
double | tiltj |
double | psij |
Matrix1D< double > | normali |
Matrix1D< double > | normalj |
Matrix1D< double > | commonline |
Matrix1D< double > | commonlinei |
Matrix1D< double > | commonlinej |
const Prog_Angular_CommonLine * | parent |
const Matrix1D< int > * | alreadyOptimized |
const Matrix1D< double > * | currentSolution |
const MultidimArray< int > * | imgIdx |
Matrix1D< double > | imgAvgCorrelation |
Matrix1D< double > | imgMinCorrelation |
MultidimArray< double > | correlationMatrix |
Additional Inherited Members | |
Protected Member Functions inherited from DESolver | |
void | SelectSamples (int candidate, int *r1, int *r2=nullptr, int *r3=nullptr, int *r4=nullptr, int *r5=nullptr) |
Protected Attributes inherited from DESolver | |
int | nDim |
int | nPop |
int | generations |
int | strategy |
StrategyFunction | calcTrialSolution |
double | scale |
double | probability |
double | trialEnergy |
double | bestEnergy |
double * | trialSolution |
double * | bestSolution |
double * | popEnergy |
double * | population |
Definition at line 45 of file angular_commonline.h.
EulerSolver::EulerSolver | ( | int | dim, |
int | pop, | ||
const Matrix1D< int > & | newAlreadyOptimized, | ||
const Matrix1D< double > & | newCurrentSolution, | ||
const MultidimArray< int > & | newImgIdx, | ||
const Prog_Angular_CommonLine * | newParent | ||
) |
Definition at line 33 of file angular_commonline.cpp.
|
virtual |
EnergyFunction must be overridden for problem to solve testSolution[] is nDim array for a candidate solution setting bAtSolution = true indicates solution is found and Solve() immediately returns true.
Implements DESolver.
Definition at line 59 of file angular_commonline.cpp.
void EulerSolver::setShow | ( | bool | newShow | ) |
Definition at line 53 of file angular_commonline.cpp.
double EulerSolver::similarityBetweenTwoLines | ( | int | imgi, |
int | imgj | ||
) |
Definition at line 220 of file angular_commonline.cpp.
const Matrix1D<int>* EulerSolver::alreadyOptimized |
Definition at line 53 of file angular_commonline.h.
Matrix1D<double> EulerSolver::commonline |
Definition at line 51 of file angular_commonline.h.
Matrix1D<double> EulerSolver::commonlinei |
Definition at line 51 of file angular_commonline.h.
Matrix1D<double> EulerSolver::commonlinej |
Definition at line 51 of file angular_commonline.h.
MultidimArray<double> EulerSolver::correlationMatrix |
Definition at line 59 of file angular_commonline.h.
const Matrix1D<double>* EulerSolver::currentSolution |
Definition at line 54 of file angular_commonline.h.
Matrix1D<double> EulerSolver::imgAvgCorrelation |
Definition at line 57 of file angular_commonline.h.
const MultidimArray<int>* EulerSolver::imgIdx |
Definition at line 55 of file angular_commonline.h.
Matrix1D<double> EulerSolver::imgMinCorrelation |
Definition at line 58 of file angular_commonline.h.
int EulerSolver::Ndim |
Definition at line 48 of file angular_commonline.h.
int EulerSolver::Nimg |
Definition at line 48 of file angular_commonline.h.
Matrix1D<double> EulerSolver::normali |
Definition at line 51 of file angular_commonline.h.
Matrix1D<double> EulerSolver::normalj |
Definition at line 51 of file angular_commonline.h.
int EulerSolver::NToSolve |
Definition at line 48 of file angular_commonline.h.
const Prog_Angular_CommonLine* EulerSolver::parent |
Definition at line 52 of file angular_commonline.h.
double EulerSolver::psii |
Definition at line 49 of file angular_commonline.h.
double EulerSolver::psij |
Definition at line 50 of file angular_commonline.h.
double EulerSolver::roti |
Definition at line 49 of file angular_commonline.h.
double EulerSolver::rotj |
Definition at line 50 of file angular_commonline.h.
bool EulerSolver::show |
Definition at line 47 of file angular_commonline.h.
double EulerSolver::tilti |
Definition at line 49 of file angular_commonline.h.
double EulerSolver::tiltj |
Definition at line 50 of file angular_commonline.h.