47 |
|
class GofR : public RadialDistrFunc { |
48 |
|
|
49 |
|
public: |
50 |
< |
GofR(SimInfo* info, const std::string& filename, const std::string& sele1, const std::string& sele2); |
50 |
> |
GofR(SimInfo* info, const std::string& filename, const std::string& sele1, |
51 |
> |
const std::string& sele2, double len, int nrbins); |
52 |
|
|
52 |
– |
|
53 |
– |
void setNRBins(int nbins) { |
54 |
– |
assert(nbins > 0); |
55 |
– |
nRBins_ = nbins; |
56 |
– |
deltaR_ = len_ / nRBins_; |
57 |
– |
histogram_.resize(nRBins_); |
58 |
– |
avgGofr_.resize(nRBins_); |
59 |
– |
} |
60 |
– |
|
53 |
|
int getNRBins() { |
54 |
|
return nRBins_; |
55 |
|
} |
56 |
|
|
65 |
– |
void setLength(double len) { |
66 |
– |
len_ = len; |
67 |
– |
deltaR_ = len_ /nRBins_; |
68 |
– |
} |
69 |
– |
|
57 |
|
double getLength() { |
58 |
|
return len_; |
59 |
|
} |