LOOS 4.1.0
The Lightweight Object Oriented Structural analysis library/toolkit
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
loos::UniformWeight Class Reference
Inheritance diagram for loos::UniformWeight:
Inheritance graph
[legend]
Collaboration diagram for loos::UniformWeight:
Collaboration graph
[legend]

Public Member Functions

const double get ()
 return the weighting of the current frame
 
const double get (const uint index)
 return the weight of the index
 
void normalize ()
 Normalize weights using length of traj.
 
void accumulate ()
 Accumulate the 'weight' used so far.
 
void accumulate (const uint index)
 
const double operator() ()
 calling nomenclature wraps get
 
const double operator() (const uint index)
 ignore the index, frame weights are constant.
 
std::vector< double > weights ()
 return a vector with the number of weights in it
 
 UniformWeight (pTraj &traj)
 
- Public Member Functions inherited from loos::Weights
virtual void addTraj (pTraj &traj)
 bind the provided pTraj to this instance of Weights
 
virtual void set (double newWeight)
 Bind a new weight to the current frame.
 
virtual void set (double newWeight, const uint index)
 Bind a new weight to a particular frame.
 
virtual uint size ()
 Return the number of weights.
 
virtual const double totalWeight ()
 Return the totalWeight, as tracked using accumulate.
 
virtual const double trajWeight ()
 Return the weight of the current trajectory.
 
virtual void operator() (double newWeight)
 binding nomenclature wraps set
 
virtual void operator() (double newWeight, const uint index)
 
virtual void operator() (std::vector< double > &newWeights)
 set all weights from passed vector
 
 Weights (const std::vector< double > &weightsvec, pTraj &traj)
 
 Weights (const std::vector< double > &weightsvec)
 
 Weights (pTraj &traj)
 

Public Attributes

uint current_frame
 
- Public Attributes inherited from loos::Weights
uint current_frame
 

Additional Inherited Members

- Protected Attributes inherited from loos::Weights
std::vector< double > _weights
 
pTraj _traj
 
uint _num_weights
 
double _total
 
double _totalTraj
 

Member Function Documentation

◆ accumulate() [1/2]

void loos::UniformWeight::accumulate ( )
virtual

Accumulate the 'weight' used so far.

Reimplemented from loos::Weights.

◆ accumulate() [2/2]

void loos::UniformWeight::accumulate ( const uint index)
virtual

accumulate the 'weight' used so far. Do nothing with index, because weights are constant.

Reimplemented from loos::Weights.

◆ get() [1/2]

const double loos::UniformWeight::get ( )
virtual

return the weighting of the current frame

Reimplemented from loos::Weights.

◆ get() [2/2]

const double loos::UniformWeight::get ( const uint index)
virtual

return the weight of the index

Reimplemented from loos::Weights.

◆ normalize()

void loos::UniformWeight::normalize ( )
virtual

Normalize weights using length of traj.

Reimplemented from loos::Weights.

◆ operator()() [1/2]

const double loos::UniformWeight::operator() ( )
virtual

calling nomenclature wraps get

Reimplemented from loos::Weights.

◆ operator()() [2/2]

const double loos::UniformWeight::operator() ( const uint index)
virtual

ignore the index, frame weights are constant.

Reimplemented from loos::Weights.

◆ weights()

std::vector< double > loos::UniformWeight::weights ( )
virtual

return a vector with the number of weights in it

Reimplemented from loos::Weights.


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