coser.datamodel.decisionsystem
类 DecisionSystemFixedNeighborhood

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

public class DecisionSystemFixedNeighborhood
extends DecisionSystemNeighborhood

Summary: Decision system with neighborhood. Now it is simply the glue between NumericDecisionSystem and TestCostDecisionSystemFixedNeighborhood, in fact its usage is similar to DecisionSystemErrorRange
Author: Fan Min minfanphd@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 12, 2011.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  double[][] array_tmp
          The data matrix according to the boolean type of the coreAttribute or the chromosome
(专用软件包)  double d
          Two instances' distance according to the value of an atrribute.
(专用软件包)  double[][] data_array
          The double dataArray of the decision table
(专用软件包)  double delta
          The delta
(专用软件包)  double dependency
          The dependency of the attribute.
protected  double[] granuleRangeArray
          Individual granule range array.
(专用软件包)  boolean isItNormalized
          Is it normalized?
(专用软件包)  int numberOfOne
          The number of 1 in the given boolean conditional attribute array
(专用软件包)  int POSsize
          The size of positive region.
(专用软件包)  int[] sample_lft
          a int type array for instances
(专用软件包)  double sqare_distance
          The sqare_distance of two instances.
 
从类 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
 
构造方法摘要
构造函数 和 描述
DecisionSystemFixedNeighborhood(Instances dataset)
          Construct the decision system.
DecisionSystemFixedNeighborhood(Instances dataset, int capacity)
          Construct the decision system.
DecisionSystemFixedNeighborhood(Instances source, int first, int toCopy)
          Construct the decision system.
DecisionSystemFixedNeighborhood(java.io.Reader reader)
          Construct the decision system.
DecisionSystemFixedNeighborhood(java.lang.String name, FastVector attInfo, int capacity)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 void assignment(int[] data_array)
          Assignment 0 1 2 3 4 5 6...
 void buildCandidatesNHBacktrack(int[][] paraNeighbors, int[] paraNumberOfInconsistentNeighbors, boolean[] paraSelectedTests, int paraTestLowerBound)
          Compute all candidate reducts using backtrack.
 boolean[][] computeAllReductsNHBacktrack()
          Compute all reducts using backtrack based on neighborhood rough set.
 double[][] dataMatrixOfBooleanAttribute(boolean[] conditionAttribute)
          Compute the data matrix according to the boolean type of the coreAttribute or the chromosome
 double getDelta()
          Get the value of delta
 double[] getGranuleRangeArray()
          Get the granule range array.
 boolean isNormalized()
          Is the decision system normalized?
protected  boolean isNormalizedJudge()
          Is the decision system normalized?
 int numOne(boolean[] conditionAttribute)
          Compute the number of 1 in the given boolean conditional attribute array
 int[] POSsizeAndDependency(double[][] dataMatrix, int[] smp_chk)
          The size of positive region and the dependency
 void setDelta(double paraDelta)
          Set the value of delta
 void setGranuleRangeArray(double paraGranuleRangeArray)
          Set the granule range array with one data.
 void setGranuleRangeArray(double[] paraGranuleRangeArray)
          Set the granule range array.
 double[][] toDoubleMatrix()
          Convert the decision system into a double matrix
 
从类 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, refreshTestCost, 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
 

字段详细信息

granuleRangeArray

protected double[] granuleRangeArray
Individual granule range array. Should be positive.


data_array

double[][] data_array
The double dataArray of the decision table


isItNormalized

boolean isItNormalized
Is it normalized?


delta

double delta
The delta


numberOfOne

int numberOfOne
The number of 1 in the given boolean conditional attribute array


array_tmp

double[][] array_tmp
The data matrix according to the boolean type of the coreAttribute or the chromosome


POSsize

int POSsize
The size of positive region.


dependency

double dependency
The dependency of the attribute.


sample_lft

int[] sample_lft
a int type array for instances


sqare_distance

double sqare_distance
The sqare_distance of two instances.


d

double d
Two instances' distance according to the value of an atrribute.

构造方法详细信息

DecisionSystemFixedNeighborhood

public DecisionSystemFixedNeighborhood(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

DecisionSystemFixedNeighborhood

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

抛出:
java.lang.Exception

DecisionSystemFixedNeighborhood

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

抛出:
java.lang.Exception

DecisionSystemFixedNeighborhood

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

抛出:
java.lang.Exception

DecisionSystemFixedNeighborhood

public DecisionSystemFixedNeighborhood(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
方法详细信息

toDoubleMatrix

public double[][] toDoubleMatrix()
Convert the decision system into a double matrix

返回:
A double matrix representing the data

isNormalizedJudge

protected boolean isNormalizedJudge()
Is the decision system normalized? Set to protected such that it cannot run outside the package.


isNormalized

public boolean isNormalized()
Is the decision system normalized?

覆盖:
类 RoughDecisionSystem 中的 isNormalized
返回:
true only if all attribute values are in [0, 1].

setGranuleRangeArray

public void setGranuleRangeArray(double[] paraGranuleRangeArray)
Set the granule range array.

参数:
paraGranuleRangeArray - the granule range array.

setGranuleRangeArray

public void setGranuleRangeArray(double paraGranuleRangeArray)
Set the granule range array with one data.

参数:
paraGranuleRangeArray - the granule range array.

getGranuleRangeArray

public double[] getGranuleRangeArray()
Get the granule range array.

返回:
The granule range array.

numOne

public int numOne(boolean[] conditionAttribute)
           throws java.lang.Exception
Compute the number of 1 in the given boolean conditional attribute array

抛出:
java.lang.Exception

dataMatrixOfBooleanAttribute

public double[][] dataMatrixOfBooleanAttribute(boolean[] conditionAttribute)
                                        throws java.lang.Exception
Compute the data matrix according to the boolean type of the coreAttribute or the chromosome

抛出:
java.lang.Exception

POSsizeAndDependency

public int[] POSsizeAndDependency(double[][] dataMatrix,
                                  int[] smp_chk)
                           throws java.lang.Exception
The size of positive region and the dependency

抛出:
java.lang.Exception

assignment

public void assignment(int[] data_array)
Assignment 0 1 2 3 4 5 6...


setDelta

public void setDelta(double paraDelta)
Set the value of delta


getDelta

public double getDelta()
Get the value of delta


computeAllReductsNHBacktrack

public boolean[][] computeAllReductsNHBacktrack()
                                         throws java.lang.Exception
Compute all reducts using backtrack based on neighborhood rough set.

抛出:
java.lang.Exception

buildCandidatesNHBacktrack

public void buildCandidatesNHBacktrack(int[][] paraNeighbors,
                                       int[] paraNumberOfInconsistentNeighbors,
                                       boolean[] paraSelectedTests,
                                       int paraTestLowerBound)
                                throws java.lang.Exception
Compute all candidate reducts 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.
抛出:
java.lang.Exception