Class StandardMHTChi2InfoJSON
java.lang.Object
generalDatabase.JsonConverter
clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
clickTrainDetector.clickTrainAlgorithms.mht.StandardMHTChi2InfoJSON
Logging for the StandardMHTChi2Info used with an MHT algorithm.
- Author:
- Jamie Macaulay
-
Field Summary
FieldsFields inherited from class clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
ALGORITHMFIELDFields inherited from class generalDatabase.JsonConverter
digitFormat, NUMBERFORMAT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCTAlgorithmInfo(String algorithmType, com.fasterxml.jackson.databind.JsonNode jTree) Create the CTAlgorithmInfo from a JSON string.voidwriteJSONData(com.fasterxml.jackson.core.JsonGenerator jg, CTAlgorithmInfo algorithmInfo) Write the algorithm info data - note that the algorithm type has already been addedMethods inherited from class clickTrainDetector.clickTrainAlgorithms.CTAlgorithmInfoLogging
createCTAlgorithmInfo, getAlgorithmType, getJsonStringMethods inherited from class generalDatabase.JsonConverter
getJSONElement, getJSONElement, quickJsonString, unpackJsonArray, writeJsonArray, writeJsonValue
-
Field Details
-
CHI2NAMEFIELD
- See Also:
-
CHI2VALFIELD
- See Also:
-
-
Constructor Details
-
StandardMHTChi2InfoJSON
public StandardMHTChi2InfoJSON()
-
-
Method Details
-
writeJSONData
public void writeJSONData(com.fasterxml.jackson.core.JsonGenerator jg, CTAlgorithmInfo algorithmInfo) Description copied from class:CTAlgorithmInfoLoggingWrite the algorithm info data - note that the algorithm type has already been added- Specified by:
writeJSONDatain classCTAlgorithmInfoLogging- Parameters:
jg- - the JSON string generator.algorithmInfo- - the algorithm info.
-
createCTAlgorithmInfo
public StandardMHTChi2Info createCTAlgorithmInfo(String algorithmType, com.fasterxml.jackson.databind.JsonNode jTree) Description copied from class:CTAlgorithmInfoLoggingCreate the CTAlgorithmInfo from a JSON string.- Specified by:
createCTAlgorithmInfoin classCTAlgorithmInfoLogging- Parameters:
algorithmType- - the algorithm type from JSON stringjTree- - the jTree.- Returns:
- the CTAlgorithmInfo.
-