public class CleaningPerformance extends Object implements stream.Processor
Processor to evaluate a cleaning. 1) Needs a PixelSet and the number of Cherenkov photons per pixel 2) Returns a "performance matrix" containing 4 doubles for true positives, false negatives and so on. A pixel with more than "mcPhotThreshold" mc-photons is classified as showerpixel. The default value is 3. 3) Calculates and returns some parameters for evaluation like precision, recall, accuracy and true/false positive/negative rate
| Modifier and Type | Field and Description |
|---|---|
int |
mcPhotThreshold |
String |
pixelSetKey |
| Constructor and Description |
|---|
CleaningPerformance() |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getPerformanceMatrixNoShower(float[] McPhotoncharge) |
double[] |
getPerformanceMatrixShower(float[] McPhotoncharge,
int[] shower,
int numShowerpixel) |
stream.Data |
process(stream.Data data) |
@Parameter(required=true) public String pixelSetKey
@Parameter(required=false,
description="Minimal number of MC Cherenkov photons to classify a pixel as showerpixel",
defaultValue="3")
public int mcPhotThreshold
public stream.Data process(stream.Data data)
process in interface stream.Processorpublic double[] getPerformanceMatrixShower(float[] McPhotoncharge,
int[] shower,
int numShowerpixel)
public double[] getPerformanceMatrixNoShower(float[] McPhotoncharge)
Copyright © 2019. All rights reserved.