Public Member Functions | |
void | compute_chi_derivative (const Profile &model_profile, const Particles &particles1, const Particles &particles2, std::vector< algebra::VectorD< 3 > > &derivatives, bool use_offset=false) const |
compute derivatives for particles1 with respect to particles2 | |
void | compute_chi_derivative (const Profile &model_profile, const Particles &particles, std::vector< algebra::VectorD< 3 > > &derivatives, bool use_offset=false) const |
compute derivatives for each Particle in particles | |
Float | compute_chi_score (const Profile &model_profile, bool use_offset=false, const std::string fit_file_name="") const |
compute chi value | |
Float | compute_chi_square_score (const Profile &model_profile, bool use_offset=false, const std::string fit_file_name="") const |
compute squared chi value | |
Float | compute_offset (const Profile &model_profile) const |
Float | compute_scale_factor (const Profile &model_profile, Float offset=0.0) const |
computes scale factor given offset value | |
Score (const Profile &exp_profile) | |
Constructor. | |
Protected Attributes | |
const Profile & | exp_profile_ |
Friends | |
template<class T > | |
void | IMP::internal::unref (T *) |
IMP::saxs::Score::Score | ( | const Profile & | exp_profile | ) |
Constructor.
[in] | exp_profile | Experimental profile we want to fit |
void IMP::saxs::Score::compute_chi_derivative | ( | const Profile & | model_profile, | |
const Particles & | particles1, | |||
const Particles & | particles2, | |||
std::vector< algebra::VectorD< 3 > > & | derivatives, | |||
bool | use_offset = false | |||
) | const |
compute derivatives for particles1 with respect to particles2
This method is needed for rigid bodies when particles1 and particles2 are particles of two rigid bodies. In this case the particles of the same rigid body are ignored.
[in] | model_profile | The current profile of particles |
[in] | particles1 | Derivative will be computed for each particle |
[in] | particles2 | Derivative will be computed relative to this set |
[in] | derivatives | Output vector |
[in] | use_offset | if true, non zero offset for fitting is used |
void IMP::saxs::Score::compute_chi_derivative | ( | const Profile & | model_profile, | |
const Particles & | particles, | |||
std::vector< algebra::VectorD< 3 > > & | derivatives, | |||
bool | use_offset = false | |||
) | const |
compute derivatives for each Particle in particles
[in] | model_profile | The current profile of particles |
[in] | particles | Derivative will be computed for each particle |
[in] | derivatives | Output vector |
[in] | use_offset | if true, non zero offset for fitting is used |