MCPcopy Create free account
hub / github.com/PDAL/PDAL / getPrecision

Function getPrecision

kernels/EvalKernel.hpp:134–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132 }
133
134 double getPrecision(int label)
135 {
136 if ((getTruePositives(label) + getFalsePositives(label)) == 0)
137 return 0.0;
138 else
139 return (double)getTruePositives(label) /
140 ((double)getTruePositives(label) +
141 (double)getFalsePositives(label));
142 }
143
144 double getAccuracy(int label)
145 {

Callers

nothing calls this directly

Calls 2

getTruePositivesFunction · 0.85
getFalsePositivesFunction · 0.85

Tested by

no test coverage detected