Class CallableCalculator
java.lang.Object
_global.tri.oxidationstates.fitting.CallableCalculator
This class is used for multi-threaded model fitting
-
Constructor Summary
ConstructorsConstructorDescriptionCallableCalculator(OxidationStateData.Entry[] entries) Create a CallableCalculator that will work on the given subset of entries. -
Method Summary
Modifier and TypeMethodDescriptionvoidappendFile(String fileName) Useful for debugging, appends information about the current fit to a file with the given namecall()voidsetCalculator(LikelihoodCalculator calculator) Set the calculator to be used to calculate the likelihood score.
-
Constructor Details
-
CallableCalculator
Create a CallableCalculator that will work on the given subset of entries. Each thread should have its own subset.- Parameters:
entries- The given subset of entries.
-
-
Method Details
-
setCalculator
Set the calculator to be used to calculate the likelihood score.- Parameters:
calculator- the likelihood calculator to be used to calculate the likelihood score.
-
call
-
appendFile
Useful for debugging, appends information about the current fit to a file with the given name- Parameters:
fileName- The given filename
-