public float getSignal(BasicFeature feature) {
if (signalField == SignalField.Score) {
return feature.getScore();
} else {
SignalFeature sf = (SignalFeature) feature;
switch (signalField) {
case Signal:
return sf.getSignal();
case QValue:
return sf.getQValue();
case PValue:
return sf.getPValue();
default:
return feature.getScore();
}
}