public class TableDiscreteFunction extends FuzzyAlgorithm
Represents the discrete function that is specified by a table of correspondences.
Constructor and Description |
---|
TableDiscreteFunction(int offsetOfInputs,
int[] tableOfOutputs)
Initializes a new instance of the
TableDiscreteFunction class. |
TableDiscreteFunction(int firstStepLevel,
Step... steps)
Initializes a new instance of the
TableDiscreteFunction class. |
Modifier and Type | Method and Description |
---|---|
int |
getMaxMistakeCount(int termLength)
Gets a maximum allowed number of mistakes for specified term length.
|
double |
getSimilarityLevel(int termLength)
Gets a similarity level for specified term length.
|
public TableDiscreteFunction(int offsetOfInputs, int[] tableOfOutputs)
Initializes a new instance of the TableDiscreteFunction
class.
offsetOfInputs
- The offset of the table indeces relative to the input values.tableOfOutputs
- The table of output values.com.aspose.ms.System.ArgumentNullException
- Thrown when tableOfOutputs
is null
.com.aspose.ms.System.ArgumentException
- Thrown when number of table elements is 0.public TableDiscreteFunction(int firstStepLevel, Step... steps)
Initializes a new instance of the TableDiscreteFunction
class.
firstStepLevel
- The level of the first step of the step function.steps
- The next steps of the step function.com.aspose.ms.System.ArgumentNullException
- Thrown when steps
is null
.com.aspose.ms.System.ArgumentException
- Thrown when limits of steps are not strictly increasing.public double getSimilarityLevel(int termLength)
Gets a similarity level for specified term length.
getSimilarityLevel
in class FuzzyAlgorithm
termLength
- The term length.public int getMaxMistakeCount(int termLength)
Gets a maximum allowed number of mistakes for specified term length.
getMaxMistakeCount
in class FuzzyAlgorithm
termLength
- The term length.Copyright © 2019. All rights reserved.