mirror of https://github.com/jlizier/jidt
Cleaned up comments around use of factory method (now not required) for constructing discrete calculators
This commit is contained in:
parent
56d868ca00
commit
ae5fda1807
|
|
@ -32,10 +32,9 @@ public class ActiveInformationCalculator {
|
|||
private double log_base = 0;
|
||||
|
||||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* knowledge of this.
|
||||
* User was formerly forced to create new instances through this factory method.
|
||||
* Retained for backwards compatibility.
|
||||
*
|
||||
* @param base
|
||||
* @param history
|
||||
*
|
||||
|
|
@ -45,7 +44,7 @@ public class ActiveInformationCalculator {
|
|||
return new ActiveInformationCalculator(base, history);
|
||||
}
|
||||
|
||||
protected ActiveInformationCalculator(int base, int history) {
|
||||
public ActiveInformationCalculator(int base, int history) {
|
||||
super();
|
||||
|
||||
this.base = base;
|
||||
|
|
|
|||
|
|
@ -36,10 +36,9 @@ public class ApparentTransferEntropyCalculator extends ContextOfPastMeasureCalcu
|
|||
protected int startObservationTime = 1;
|
||||
|
||||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* knowledge of this.
|
||||
* User was formerly forced to create new instances through this factory method.
|
||||
* Retained for backwards compatibility.
|
||||
*
|
||||
* @param base
|
||||
* @param history
|
||||
*
|
||||
|
|
|
|||
|
|
@ -28,10 +28,8 @@ public class BlockEntropyCalculator extends EntropyCalculator {
|
|||
protected int base_power_blocksize = 0;
|
||||
|
||||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* knowledge of this. (This functionality is now obselete though)
|
||||
* User was formerly forced to create new instances through this factory method.
|
||||
* Retained for backwards compatibility.
|
||||
*
|
||||
* @param blocksize
|
||||
* @param base
|
||||
|
|
|
|||
|
|
@ -53,10 +53,9 @@ public class CompleteTransferEntropyCalculator extends InfoMeasureCalculator {
|
|||
protected int startObservationTime = 1;
|
||||
|
||||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* knowledge of this.
|
||||
* User was formerly forced to create new instances through this factory method.
|
||||
* Retained for backwards compatibility.
|
||||
*
|
||||
* @param base
|
||||
* @param history
|
||||
* @param numOtherInfoContributors
|
||||
|
|
|
|||
|
|
@ -23,10 +23,9 @@ public class EntropyCalculator extends InfoMeasureCalculator
|
|||
protected int[] stateCount = null; // Count for i[t]
|
||||
|
||||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* knowledge of this. (This is obselete though)
|
||||
* User was formerly forced to create new instances through this factory method.
|
||||
* Retained for backwards compatibility.
|
||||
*
|
||||
* @param base
|
||||
* @param blocksize
|
||||
*
|
||||
|
|
|
|||
|
|
@ -17,10 +17,9 @@ package infodynamics.measures.discrete;
|
|||
public class EntropyRateCalculator extends SingleAgentMeasureInContextOfPastCalculator {
|
||||
|
||||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* knowledge of this. (This is obselete anyway)
|
||||
* User was formerly forced to create new instances through this factory method.
|
||||
* Retained for backwards compatibility.
|
||||
*
|
||||
* @param base
|
||||
* @param history
|
||||
*
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ public class MultiInformationCalculator extends InfoMeasureCalculator {
|
|||
private boolean checkedFirst = false;
|
||||
|
||||
/**
|
||||
* Null constructor
|
||||
* Constructor
|
||||
*
|
||||
*/
|
||||
public MultiInformationCalculator(int base, int numVars) {
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public class SeparableInfoCalculator extends ContextOfPastMeasureCalculator {
|
|||
/**
|
||||
* User to create new instances through this factory method.
|
||||
* This allows us to return an efficient calculator for
|
||||
* base 2, for example, without the user needing to have
|
||||
* particular situations without the user needing to have
|
||||
* knowledge of this.
|
||||
* @param base
|
||||
* @param history
|
||||
|
|
|
|||
Loading…
Reference in New Issue