Katzlab dd76ab1d12 Added PTL2 Scripts
These are PTL2 files from Auden 2/9
2023-02-14 11:20:52 -05:00

34 lines
848 B
C++

// $Id: weightVectors.h 409 2005-06-28 13:12:24Z ninio $
#ifndef ___WEIGHTS_VECTORS
#define ___WEIGHTS_VECTORS
#include "definitions.h"
class weightVectors {
public:
explicit weightVectors(istream &infile); // return the number of vector read
//This construction just allocates the place. The starting weights are 1.0
//a second call to fill random weights is needed.
explicit weightVectors(const int length, const int size);
int size() const {return _weights.size();}
int length() const {return ((_weights.size() == 0) ? 0 : _weights[0].size());}
// this function fills the weight vectors according to the standard bootsrap method
void randomizeBPweights();
private:
VVdouble _weights;
int read(istream &infile); // return the number of vector read
void checkLengthAndSize(const int length, const int size);
};
#endif