clipper::SFweight_spline< T > Class Template Reference

Structure factor weighting by sigmaa-related spline method. More...

#include <sfweight.h>

Inheritance diagram for clipper::SFweight_spline< T >:
clipper::SFweight_base< T >

List of all members.

Classes

struct  HLterms
class  TargetFo
class  TargetHL
struct  TargetResult

Public Member Functions

 SFweight_spline (const int n_reflns=1000, const int n_params=20, const int n_phases=24)
 constructor
 SFweight_spline (HKL_data< datatypes::F_phi< T > > &fb, HKL_data< datatypes::F_phi< T > > &fd, HKL_data< datatypes::Phi_fom< T > > &phiw, const HKL_data< datatypes::F_sigF< T > > &fo, const HKL_data< datatypes::F_phi< T > > &fc, const HKL_data< datatypes::Flag > &usage, const int n_reflns=1000, const int n_params=20)
 constructor: shorthand for constructor+operator
void init (const int n_reflns=1000, const int n_params=20, const int n_phases=24)
 initialise: from parameters
bool operator() (HKL_data< datatypes::F_phi< T > > &fb, HKL_data< datatypes::F_phi< T > > &fd, HKL_data< datatypes::Phi_fom< T > > &phiw, const HKL_data< datatypes::F_sigF< T > > &fo0, const HKL_data< datatypes::F_phi< T > > &fc0, const HKL_data< datatypes::Flag > &usage)
 Structure factor weighting (sigmaa) definition.
bool operator() (HKL_data< datatypes::F_phi< T > > &fb, HKL_data< datatypes::F_phi< T > > &fd, HKL_data< datatypes::Phi_fom< T > > &phiw, HKL_data< datatypes::ABCD< T > > &hl, const HKL_data< datatypes::F_sigF< T > > &fo0, const HKL_data< datatypes::ABCD< T > > &hl0, const HKL_data< datatypes::F_phi< T > > &fc0, const HKL_data< datatypes::Flag > &usage)
template<class F >
bool evaluate (HKL_data< datatypes::F_phi< T > > &fb, HKL_data< datatypes::F_phi< T > > &fd, HKL_data< datatypes::Phi_fom< T > > &phiw, HKL_data< datatypes::ABCD< T > > &hl, const HKL_data< datatypes::F_sigF< T > > &fo0, const HKL_data< datatypes::ABCD< T > > &hl0, const HKL_data< datatypes::F_phi< T > > &fc0, const HKL_data< datatypes::Flag > &usage, F tgt)
template<class F >
bool reevaluate (HKL_data< datatypes::F_phi< T > > &fb, HKL_data< datatypes::F_phi< T > > &fd, HKL_data< datatypes::Phi_fom< T > > &phiw, HKL_data< datatypes::ABCD< T > > &hl, const HKL_data< datatypes::F_sigF< T > > &fo0, const HKL_data< datatypes::ABCD< T > > &hl0, const HKL_data< datatypes::F_phi< T > > &fc0, const HKL_data< datatypes::Flag > &usage, F tgt)
const std::vector< ftype > & params_scale ()
const std::vector< ftype > & params_error ()
const double & log_likelihood_work ()
const double & log_likelihood_free ()
void debug () const
TargetResult targetfn (const HKL_class cls, const datatypes::F_sigF< T > &fo0, const datatypes::F_phi< T > &fc0, const ftype &s, const ftype &w) const
TargetResult targethl (const HKL_class cls, const datatypes::F_sigF< T > &fo0, const datatypes::ABCD< T > &hl0, const datatypes::F_phi< T > &fc0, const ftype &s, const ftype &w) const

Detailed Description

template<class T>
class clipper::SFweight_spline< T >

Structure factor weighting by sigmaa-related spline method.

Perform structure factor weighting to obtain likelihood weights for structure factors.

This implementation uses a single list of reflections for both scaling and sigmaa, thus the only relevent usage flags are NONE/BOTH.

The number of spline parameters or the number of reflections per parameter may be specified. If either is zero, the other takes priority. If both are non-zero, a compromise value is used.


Member Function Documentation

template<class T >
bool clipper::SFweight_spline< T >::operator() ( HKL_data< datatypes::F_phi< T > > &  fb,
HKL_data< datatypes::F_phi< T > > &  fd,
HKL_data< datatypes::Phi_fom< T > > &  phiw,
const HKL_data< datatypes::F_sigF< T > > &  fo,
const HKL_data< datatypes::F_phi< T > > &  fc,
const HKL_data< datatypes::Flag > &  usage 
) [inline, virtual]

Structure factor weighting (sigmaa) definition.

In the implementations, this function will do the actual structure factor weighting calculation

Parameters:
fb Output best map coefficients.
fd Output difference map coefficients.
phiw Output phase and figure-of-merit.
fo Input observed structure factors.
fc Input calculated map coefficients.
flag Input flag indicating what to use this reflection for.
Returns:
true on success.

Implements clipper::SFweight_base< T >.

template<class T >
void clipper::SFweight_spline< T >::debug (  )  const [inline]

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

Generated on 4 Jan 2010 for Clipper_contrib by  doxygen 1.6.1