coser.datamodel.decisionsystem
类 TestCostNominalDecisionSystemFastRandom

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.decisionsystem.RoughDecisionSystem
          继承者 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
              继承者 coser.datamodel.decisionsystem.NominalDecisionSystem
                  继承者 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem
                      继承者 coser.datamodel.decisionsystem.TestCostNominalDecisionSystemFastRandom

public class TestCostNominalDecisionSystemFastRandom
extends TestCostNominalDecisionSystem

Project: Java programming course.

The Fast Random algorithm to deal with test cost attribute reduction.

Author: JingKuan Li kingljk@126.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.
Progress: Done.
Written time: July 11, 2012.
Last modify time: July 11, 2012.


字段摘要
修饰符 和 类型 字段 和 描述
 int alpha
          The exponent of random numbers.
 TestCostNominalDecisionSystem currnetDecisionSystem
          The current TestCostConstraintDecisionSystem
 double delta
          The exponent of random probability.
(专用软件包)  boolean[] minTestCostReduct
          The array of minimal test cost reduction.
(专用软件包)  long optimaltestcost
          The test cost of optimal
 int optimalTestCost
          preserving the the optimal test cost
(专用软件包)  int posAllConditions
          The number of positive region.
(专用软件包)  java.util.Random rand
          The random
(专用软件包)  boolean[] reduct
          The reduct which we output.
(专用软件包)  long reductionEndTime
          The end time of reduction
(专用软件包)  long reductionStartTime
          The starting time of reduction
(专用软件包)  java.lang.String reductStringFR
          The String of reduct
protected  int seed
          Random seed
(专用软件包) static int stepsOfFR
          The total steps of random.
(专用软件包)  boolean[] tempReduct
          The reduct of temporary
(专用软件包)  long tempTestcost
          The test cost of temporary
(专用软件包)  int[] testcost
          The array of test cost
 boolean workState
          The work state of fast random
 
从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的字段
lambda, weighting
 
从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的字段
ATTRIBUTES_COMBINATIONS, BACKTRACK, EXPONENTIAL, reductMinimalSize
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的字段
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, numberOfCandidateReducts, numberOfCandidateSubreducts, numberOfConditions, numberOfInstances, optimalReduct, POSITIVE_REGION, runTimeInformation, startTime, totalEntropy, totalMajority, totalPositiveRegion
 
构造方法摘要
构造函数 和 描述
TestCostNominalDecisionSystemFastRandom(TestCostNominalDecisionSystem paraDecisionSystem)
          The first constructor
TestCostNominalDecisionSystemFastRandom(TestCostNominalDecisionSystem paraDecisionSystem, int paraAlpha, double paraDelta, int paraseed)
          The second constructor
 
方法摘要
修饰符 和 类型 方法 和 描述
 void initialize()
          Initialize
 double minimalTestCost()
          Calculation of test cost reduction
 double minimalTestCostReductFR()
          Fast Random to minimal test cost reduction problem.
 java.lang.String reductStringFR()
          Generate reduct string
 
从类 coser.datamodel.decisionsystem.TestCostNominalDecisionSystem 继承的方法
computeOptimalReductBacktrack, entropyBasedLambdaWeightedReduction, isCurrentReductOptimal, optimalReductBacktrack, removeRedundantAttributes, setLambda, setWeighting, sortByTestCost, toString
 
从类 coser.datamodel.decisionsystem.NominalDecisionSystem 继承的方法
buildCandidateReducts, computeAllReductsBacktrack, computeAllReductsBacktrack, computeAllReductsExhaustive, computeAllReductsExhaustive, computeAllReductsExhaustive, computeAllReductsExhaustiveExponential, computeAllSubreducts, computeConsistency, computeCore, conditionalEntropy, entropyBasedReduction, informationGain, informationGain, main, majority, majority, positiveRegion, positiveRegion, removeRedundantSubreducts, splitData, splitData, splitData
 
从类 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem 继承的方法
averageMisclassificationCost, averageMisclassificationCost, averageMisclassificationCost, averageMisclassificationCost, bestClassValue, computeAdditiveCost, computeExceedingFactor, computeOptimalTestCost, 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
 
从类 coser.datamodel.decisionsystem.RoughDecisionSystem 继承的方法
classEntropy, classEntropy, computeConsistency, computeConsistency, computeCore, 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, isNormalized, isNumeric, majority, majority, normalize, 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
 

字段详细信息

currnetDecisionSystem

public TestCostNominalDecisionSystem currnetDecisionSystem
The current TestCostConstraintDecisionSystem


workState

public boolean workState
The work state of fast random


optimalTestCost

public int optimalTestCost
preserving the the optimal test cost


posAllConditions

int posAllConditions
The number of positive region.


alpha

public int alpha
The exponent of random numbers.


delta

public double delta
The exponent of random probability.


stepsOfFR

static int stepsOfFR
The total steps of random.


testcost

int[] testcost
The array of test cost


minTestCostReduct

boolean[] minTestCostReduct
The array of minimal test cost reduction.


tempReduct

boolean[] tempReduct
The reduct of temporary


reduct

boolean[] reduct
The reduct which we output.


tempTestcost

long tempTestcost
The test cost of temporary


reductStringFR

java.lang.String reductStringFR
The String of reduct


optimaltestcost

long optimaltestcost
The test cost of optimal


reductionStartTime

long reductionStartTime
The starting time of reduction


reductionEndTime

long reductionEndTime
The end time of reduction


seed

protected int seed
Random seed


rand

java.util.Random rand
The random

构造方法详细信息

TestCostNominalDecisionSystemFastRandom

public TestCostNominalDecisionSystemFastRandom(TestCostNominalDecisionSystem paraDecisionSystem)
                                        throws java.io.IOException,
                                               java.lang.Exception
The first constructor

参数:
paraDecisionSystem - The given decision system
抛出:
java.io.IOException - IO exceptions
java.lang.Exception - Any exception

TestCostNominalDecisionSystemFastRandom

public TestCostNominalDecisionSystemFastRandom(TestCostNominalDecisionSystem paraDecisionSystem,
                                               int paraAlpha,
                                               double paraDelta,
                                               int paraseed)
                                        throws java.io.IOException,
                                               java.lang.Exception
The second constructor

参数:
paraDecisionSystem - The given dicision system.
paraAlpha - The parameter alpha
paraDelta - The parameter delta
paraseed - The parameter seed
抛出:
java.io.IOException - IO exception
java.lang.Exception - Exception
方法详细信息

initialize

public void initialize()
Initialize


minimalTestCostReductFR

public double minimalTestCostReductFR()
Fast Random to minimal test cost reduction problem.

返回:
Test cost

minimalTestCost

public double minimalTestCost()
Calculation of test cost reduction

返回:
The minimal test cost

reductStringFR

public java.lang.String reductStringFR()
Generate reduct string

返回:
The reduct string