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

Function getSpecificity

kernels/EvalKernel.hpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122 }
123
124 double getSpecificity(int label)
125 {
126 if ((getFalsePositives(label) + getTrueNegatives(label)) == 0)
127 return 0.0;
128 else
129 return (double)getTrueNegatives(label) /
130 ((double)getFalsePositives(label) +
131 (double)getTrueNegatives(label));
132 }
133
134 double getPrecision(int label)
135 {

Callers

nothing calls this directly

Calls 2

getFalsePositivesFunction · 0.85
getTrueNegativesFunction · 0.85

Tested by

no test coverage detected