IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::em::FittingSolutions Class Reference

A simple list of fitting solutions. More...

#include <IMP/em/rigid_fitting.h>

Detailed Description

Public Member Functions

void add_solution (const algebra::Transformation3D &t, Float score)
 Add a solution to the fitting solution set.
int get_number_of_solutions () const
 Get the number of solutions in the set.
Float get_score (unsigned int i) const
 Get the score of the i'th solution.
algebra::Transformation3D get_transformation (unsigned int i) const
 Get the score of the i'th solution.
algebra::Transformation3Ds get_transformations () const
void multiply (const algebra::Transformation3D &t)
void set_score (unsigned int i, Float score)
void show (std::ostream &out=std::cout) const
void sort (bool reverse=false)
 Sort solutions by cross-correlation scores.

Protected Attributes

std::vector< FittingSolution > fs_

Constructor & Destructor Documentation

◆ FittingSolutions()

IMP::em::FittingSolutions::FittingSolutions ( )

Definition at line 53 of file rigid_fitting.h.

Member Function Documentation

◆ add_solution()

void IMP::em::FittingSolutions::add_solution ( const algebra::Transformation3D & t,
Float score )

Add a solution to the fitting solution set.

◆ get_number_of_solutions()

int IMP::em::FittingSolutions::get_number_of_solutions ( ) const

Get the number of solutions in the set.

Definition at line 55 of file rigid_fitting.h.

◆ get_score()

Float IMP::em::FittingSolutions::get_score ( unsigned int i) const

Get the score of the i'th solution.

Returns
the i'th score, or throw an exception if the index is out of range

Definition at line 73 of file rigid_fitting.h.

◆ get_transformation()

algebra::Transformation3D IMP::em::FittingSolutions::get_transformation ( unsigned int i) const

Get the score of the i'th solution.

Returns
the i'th transformation, or throw an exception if the index is out of range

Definition at line 61 of file rigid_fitting.h.

◆ get_transformations()

algebra::Transformation3Ds IMP::em::FittingSolutions::get_transformations ( ) const

Definition at line 97 of file rigid_fitting.h.

◆ multiply()

void IMP::em::FittingSolutions::multiply ( const algebra::Transformation3D & t)

Multiply each transformation (T) by t, such that the new transformation are T*t

Definition at line 93 of file rigid_fitting.h.

◆ set_score()

void IMP::em::FittingSolutions::set_score ( unsigned int i,
Float score )

Definition at line 80 of file rigid_fitting.h.

◆ show()

void IMP::em::FittingSolutions::show ( std::ostream & out = std::cout) const

Definition at line 103 of file rigid_fitting.h.

◆ sort()

void IMP::em::FittingSolutions::sort ( bool reverse = false)

Sort solutions by cross-correlation scores.

Member Data Documentation

◆ fs_

std::vector<FittingSolution> IMP::em::FittingSolutions::fs_
protected

Definition at line 111 of file rigid_fitting.h.


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