MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / StandardDeviation

Method StandardDeviation

tensorflow/core/lib/histogram/histogram.cc:164–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164double Histogram::StandardDeviation() const {
165 if (num_ == 0.0) return 0;
166 double variance = (sum_squares_ * num_ - sum_ * sum_) / (num_ * num_);
167 return sqrt(variance);
168}
169
170std::string Histogram::ToString() const {
171 std::string r;

Callers 1

TESTFunction · 0.80

Calls 1

sqrtClass · 0.50

Tested by 1

TESTFunction · 0.64