mirror of https://github.com/jlizier/jidt
Added getProperty for AIS Kraskov multivariate. Need to re-engineer this class for proper code re-use anyway.
This commit is contained in:
parent
3aa1493d7f
commit
2ff6d8aeec
|
|
@ -332,6 +332,18 @@ public class ActiveInfoStorageCalculatorMultiVariateKraskov
|
|||
}
|
||||
|
||||
// TODO: PEDRO: should I implement a getProperty here?
|
||||
// Joe: Yes. But look into this in wider context of what else we could cut from this class --
|
||||
// there seems to be an awful lot that's re-implementing variables and code that we
|
||||
// inherit already ...
|
||||
@Override
|
||||
public String getProperty(String propertyName) throws Exception {
|
||||
if (propertyName.equalsIgnoreCase(PROP_KRASKOV_ALG_NUM)) {
|
||||
return Integer.toString(kraskovAlgorithmNumber);
|
||||
} else {
|
||||
// Assume it was a property for the parent class or underlying conditional MI calculator
|
||||
return super.getProperty(propertyName);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preFinaliseAddObservations() throws Exception {
|
||||
|
|
|
|||
Loading…
Reference in New Issue