coser.datamodel.decisionsystem
类 TestCostDecisionSystemFixedNeighborhood

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.decisionsystem.RoughDecisionSystem
          继承者 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
              继承者 coser.datamodel.decisionsystem.NumericDecisionSystem
                  继承者 coser.datamodel.decisionsystem.DecisionSystemNeighborhood
                      继承者 coser.datamodel.decisionsystem.DecisionSystemFixedNeighborhood
                          继承者 coser.datamodel.decisionsystem.TestCostDecisionSystemFixedNeighborhood
直接已知子类:
TestCostDecisionSystemFixedNeighborhoodGA

public class TestCostDecisionSystemFixedNeighborhood
extends DecisionSystemFixedNeighborhood

Summary: Decision system with neighborhood and test cost.

Author: Hong Zhao fhq_xa@163.com Shujiao Liao sjliao2011@163.com
Copyright: The source code and all documents are open and free. PLEASE keep this header while revising the program.
Organization: Lab of Granular Computing, Zhangzhou Normal University, Fujian 363000, China.
Project: The cost-sensitive rough sets project.

Progress: The very beginning.
Written time: August 12, 2011.
Last modify time: August 24, 2011.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  double[] normalizedIndividualTestCostArray
          Normalized individual test-cost array.
(专用软件包)  double testCostSum
          Sum of individual test-cost array.
 
从类 coser.datamodel.decisionsystem.DecisionSystemFixedNeighborhood 继承的字段
array_tmp, d, data_array, delta, dependency, granuleRangeArray, isItNormalized, numberOfOne, POSsize, sample_lft, sqare_distance
 
从类 coser.datamodel.decisionsystem.DecisionSystemNeighborhood 继承的字段
candidateReductsArray, neighborhoodSizeArray, numberOfCandidateReducts, seed
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的字段
alpha, COMPLEX_COMMON_TEST_COST, COST_TYPE_MONEY, COST_TYPE_TESTING_TIME, COST_TYPE_WAITING_TIME, currentReductCost, currentReductTime, currentReductTotalTestCost, DEFAULT_AVERAGE_NUMBER_OF_TESTS_PER_GROUP, groupCommonTestCostArray, groupInclusionArray, groupInclusionMatrix, IMPOSSIBLE_COST, individualCostDistributions, individualCostLowerBounds, individualCostMatrix, individualCostRandom, individualCostUpperBounds, minimalTestCostReduct, minimalTimeReduct, misclassificationCostMatrix, misclassificationCostSumArray, NORMAL, optimalReductTestCost, optimalReductTime, PARETO, randomMode, SIMPLE_COMMON_TEST_COST, TEST_COST_INDEPENDENT, TEST_COST_TYPES, testCostConstraint, testCostRelationship, testingOrderMatrix, timeParts, totalTimeConstraint, unifiedMisclassificationCost, UNIFORM
 
从类 coser.datamodel.decisionsystem.RoughDecisionSystem 继承的字段
allConditions, allReducts, allReductsFilename, allSubreducts, allSubreductsFilename, arffFilename, backtrackSteps, candidateReductArray, candidateSubreductArray, candidateSubreductConsistencyArray, classSize, CONDITIONAL_ENTROPY, consistency, core, currentReduct, currentSelectedAttributes, endTime, MAJORITY, minimalReductSize, numberOfCandidateSubreducts, numberOfConditions, numberOfInstances, optimalReduct, POSITIVE_REGION, runTimeInformation, startTime, totalEntropy, totalMajority, totalPositiveRegion
 
构造方法摘要
构造函数 和 描述
TestCostDecisionSystemFixedNeighborhood(Instances dataset)
          Construct the decision system.
TestCostDecisionSystemFixedNeighborhood(Instances dataset, int capacity)
          Construct the decision system.
TestCostDecisionSystemFixedNeighborhood(Instances source, int first, int toCopy)
          Construct the decision system.
TestCostDecisionSystemFixedNeighborhood(java.io.Reader reader)
          Construct the decision system.
TestCostDecisionSystemFixedNeighborhood(java.lang.String name, FastVector attInfo, int capacity)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 java.lang.String allReductsToString()
          All reducts to string.
 int computeOptimalReductTestCostFNBacktrack()
          Compute the test cost of an optimal reduct using backtrack based on neighborhood rough set.
 double[] getNomalizedIndividualTestCostArray()
          Get normalized individual test cost array.
 void oneOptimalFNBacktrack(int[][] paraNeighbors, int[] paraNumberOfInconsistentNeighbors, boolean[] paraSelectedTests, int paraTestLowerBound, int paraExistingTestCost)
          Compute one optimal reduct using backtrack.
 java.lang.String printIndividualTestCostArray()
          Show individual test cost array.
 java.lang.String printNormalizedIndividualTestCostArray()
          Show normalized individual test cost array.
 void refreshTestCost()
          Refresh the test-cost settings.
 void refreshTestCost1()
          Refresh the test-cost settings.
 void setNomalizedIndividualTestCostArray()
          Set normalized individual test cost array.
 double sumOfTestCostArray()
          Get the sum of test-cost array.
 
从类 coser.datamodel.decisionsystem.DecisionSystemFixedNeighborhood 继承的方法
assignment, buildCandidatesNHBacktrack, computeAllReductsNHBacktrack, dataMatrixOfBooleanAttribute, getDelta, getGranuleRangeArray, isNormalized, isNormalizedJudge, numOne, POSsizeAndDependency, setDelta, setGranuleRangeArray, setGranuleRangeArray, toDoubleMatrix
 
从类 coser.datamodel.decisionsystem.DecisionSystemNeighborhood 继承的方法
addAttribute, averageMisclassificationCost, buildCandidatesBacktrack, computeAllReductsBacktrack, computeExceedingFactor, computeNeighborhood, computeOptimalReductTestCostBacktrack, computeOptimalTestCost, getNeighborhoodSizeArray, inconsistencyBasedLambdaReduction, inconsistencyDecrease, isConsistent, isCurrentReductOptimal, oneOptimalBacktrack, removeSuperReducts, setMisclassificationCostMatrix, setNeighborhoodSizeArray, totalCost, totalCost
 
从类 coser.datamodel.decisionsystem.NumericDecisionSystem 继承的方法
toString
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的方法
averageMisclassificationCost, averageMisclassificationCost, bestClassValue, computeAdditiveCost, computeReductTestCost, computeReductWaitingTime, computeTestCost, computeTestCost, copyForClone, generateIndividualCosts, generateOneCost, getClassificationCost, getDistributionString, getIndividualCost, getIndividualTestCost, getIndividualTestCostArray, getMisclassificationCostMatrix, getOptimalReductTestCost, getReductTotalTestCost, initializeForReduction, setAlpha, setComplexCommonTestCostArrays, setCostRandomMode, setIndividualCostArray, setIndividualCostBounds, setIndividualCostDistribution, setMisclassificationCostMatrix, setMisclassificationCostMatrix, setSimpleCommonTestCostArrays, setTestCostsRelationShip, setUnifiedMisclassificationCost, sortByTestCost
 
从类 coser.datamodel.decisionsystem.RoughDecisionSystem 继承的方法
classEntropy, classEntropy, computeConsistency, computeConsistency, computeConsistency, computeCore, computeCore, conditionalEntropy, conditionalEntropy, conditionalEntropy, conditionalEntropy, copyForClone, delete, divideInTwo, entropyReciprocal, entropyReciprocal, entropyReciprocal, entropyReciprocal, entropyReciprocal, getAllReductsFilename, getAllReductsString, getAllSubreductsFilename, getArffFilename, getArffSource, getBacktrackSteps, getCandidateSubreductConsistencyArray, getCurrentReduct, getCurrentReductIndex, getMeasure, getNumberOfConditions, getOptimalReduct, getReductionTime, getReductString, getRunTimeInformation, hasMissingValue, isNominal, isNumeric, majority, majority, majority, normalize, positiveRegion, positiveRegion, positiveRegion, printAllReducts, readAllReducts, readAllReducts, readAllSubreducts, readAllSubreducts, setAllReductsFilename, setAllReductsFilename, setAllSubreductsFilename, setAllSubreductsFilename, setArffFilename, setCurrentReduct, setCurrentReduct, setMeasure, writeAllReducts
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

normalizedIndividualTestCostArray

double[] normalizedIndividualTestCostArray
Normalized individual test-cost array.


testCostSum

double testCostSum
Sum of individual test-cost array.

构造方法详细信息

TestCostDecisionSystemFixedNeighborhood

public TestCostDecisionSystemFixedNeighborhood(java.io.Reader reader)
                                        throws java.io.IOException,
                                               java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.io.IOException
java.lang.Exception

TestCostDecisionSystemFixedNeighborhood

public TestCostDecisionSystemFixedNeighborhood(Instances dataset)
                                        throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception

TestCostDecisionSystemFixedNeighborhood

public TestCostDecisionSystemFixedNeighborhood(Instances dataset,
                                               int capacity)
                                        throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception

TestCostDecisionSystemFixedNeighborhood

public TestCostDecisionSystemFixedNeighborhood(Instances source,
                                               int first,
                                               int toCopy)
                                        throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception

TestCostDecisionSystemFixedNeighborhood

public TestCostDecisionSystemFixedNeighborhood(java.lang.String name,
                                               FastVector attInfo,
                                               int capacity)
                                        throws java.lang.Exception
Construct the decision system. Simply adopt everything of the super class.

抛出:
java.lang.Exception
方法详细信息

printIndividualTestCostArray

public java.lang.String printIndividualTestCostArray()
Show individual test cost array.


printNormalizedIndividualTestCostArray

public java.lang.String printNormalizedIndividualTestCostArray()
Show normalized individual test cost array.


setNomalizedIndividualTestCostArray

public void setNomalizedIndividualTestCostArray()
Set normalized individual test cost array.


getNomalizedIndividualTestCostArray

public double[] getNomalizedIndividualTestCostArray()
Get normalized individual test cost array.


refreshTestCost

public void refreshTestCost()
                     throws java.lang.Exception
Refresh the test-cost settings.

覆盖:
类 CostSensitiveDecisionSystem 中的 refreshTestCost
抛出:
java.lang.Exception

refreshTestCost1

public void refreshTestCost1()
                      throws java.lang.Exception
Refresh the test-cost settings.

抛出:
java.lang.Exception

sumOfTestCostArray

public double sumOfTestCostArray()
Get the sum of test-cost array.

返回:
the sum of test-cost array.

computeOptimalReductTestCostFNBacktrack

public int computeOptimalReductTestCostFNBacktrack()
                                            throws java.lang.Exception
Compute the test cost of an optimal reduct using backtrack based on neighborhood rough set.

抛出:
java.lang.Exception

oneOptimalFNBacktrack

public void oneOptimalFNBacktrack(int[][] paraNeighbors,
                                  int[] paraNumberOfInconsistentNeighbors,
                                  boolean[] paraSelectedTests,
                                  int paraTestLowerBound,
                                  int paraExistingTestCost)
                           throws java.lang.Exception
Compute one optimal reduct using backtrack.

参数:
paraNeighbors - Neighbors of each object. The matrix is not full.
paraNumberOfInconsistentNeighbors - Effective number of neighbors of each object. Consistent objects should not be considered.
paraSelectedTests - Already selected tests.
paraTestLowerBound - The lower bound of test index. We only need forward search.
paraExistingTestCost - The cost of already selected tests.
抛出:
java.lang.Exception
另请参见:
DecisionSystemNeighborhood.buildCandidatesBacktrack(int[][], int[], boolean[], int)

allReductsToString

public java.lang.String allReductsToString()
                                    throws java.io.IOException,
                                           java.lang.Exception
All reducts to string.

返回:
a string indicating all reducts.
抛出:
java.io.IOException
java.lang.Exception