coser.datamodel.decisionsystem
类 DecisionSystemNormalError

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.decisionsystem.RoughDecisionSystem
          继承者 coser.datamodel.decisionsystem.CostSensitiveDecisionSystem
              继承者 coser.datamodel.decisionsystem.NumericDecisionSystem
                  继承者 coser.datamodel.decisionsystem.DecisionSystemNeighborhood
                      继承者 coser.datamodel.decisionsystem.DecisionSystemNormalError
直接已知子类:
BothCostsDecisionSystemNormalError, TestCostDecisionSystemNormalError

public class DecisionSystemNormalError
extends DecisionSystemNeighborhood

Summary: Decision system with normal distribution measurement errors.

For the computational model please refer to:
\@ARTICLE{
author = {Hong Zhao and Fan Min and William Zhu},
title = {},
journal = {},
year = {2012}
}

Author: Fan Min and Hong Zhao 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: Done.
Written time: November 8, 2012.
Last modify time: November 8, 2012.


字段摘要
修饰符 和 类型 字段 和 描述
protected  boolean errorRandomMode
          Random mode.
(专用软件包)  java.util.Random individualErrorRandom
          Used to generate individual error.
(专用软件包)  double sigma
          For a normal distribution, nearly all values lie within 3 standard deviations of the mean, that is "3-sigma" rule.
 
从类 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
 
构造方法摘要
构造函数 和 描述
DecisionSystemNormalError(Instances dataset)
          Construct the decision system.
DecisionSystemNormalError(Instances dataset, int capacity)
          Construct the decision system.
DecisionSystemNormalError(Instances source, int first, int toCopy)
          Construct the decision system.
DecisionSystemNormalError(java.io.Reader reader)
          Construct the decision system.
DecisionSystemNormalError(java.lang.String name, FastVector attInfo, int capacity)
          Construct the decision system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 double[] computeErrorSizeArray()
          Compute the range of normal error.
 double creatNormalError(double paraErrorRange, int seed)
          Create new data with normal distribution observational error according to error range.
 double getAverageErrorRangeSizeArray()
          Get the average size of normal error array.
 double getAverageValueNormalErrorSize()
          Get the average value of normal error array.
 double[] getNormalErrorSizeArray()
          Get the normal error array.
(专用软件包) static double normalDistributionQuantile(double paraProbability)
          Normal Distribution Quantile.
 void setIndividualTestCostArray(int[] paraIndividualCostArray)
          Set the test-cost array.
 double setNormalErrorSize(double paraOriginalErrorRangeArray, double paraProbability)
          Set the error size of one attribute.
 void setNormalErrorSizeArray(double paraProbability)
          Set the size of normal error array.
 void setNormalErrorSizeArray(double[] paraOriginalErrorRangeArray, double paraProbability)
          Set the size of normal error array.
 
从类 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, isNormalized, 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
 

字段详细信息

errorRandomMode

protected boolean errorRandomMode
Random mode. TRUE for "real" random, and FALSE for the same random sequence.


individualErrorRandom

java.util.Random individualErrorRandom
Used to generate individual error.


sigma

double sigma
For a normal distribution, nearly all values lie within 3 standard deviations of the mean, that is "3-sigma" rule.

构造方法详细信息

DecisionSystemNormalError

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

DecisionSystemNormalError

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

抛出:
java.lang.Exception

DecisionSystemNormalError

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

抛出:
java.lang.Exception

DecisionSystemNormalError

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

抛出:
java.lang.Exception

DecisionSystemNormalError

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

setNormalErrorSizeArray

public void setNormalErrorSizeArray(double[] paraOriginalErrorRangeArray,
                                    double paraProbability)
Set the size of normal error array.

参数:
paraErrorRangeArray - the size of normal error array.
paraProbability - the Probability of [-up, up].

setNormalErrorSizeArray

public void setNormalErrorSizeArray(double paraProbability)
Set the size of normal error array.

参数:
paraErrorRangeArray - the size of normal error array.
paraProbability - the Probability of [-up, up].

setIndividualTestCostArray

public void setIndividualTestCostArray(int[] paraIndividualCostArray)
                                throws java.lang.Exception
Set the test-cost array. After the assignment, the decision system type is TEST-COST-INDEPENDENT.

参数:
paraIndividualCostArray - the test-cost array.
抛出:
java.lang.Exception

getAverageErrorRangeSizeArray

public double getAverageErrorRangeSizeArray()
Get the average size of normal error array.

返回:
the average size of error range.

setNormalErrorSize

public double setNormalErrorSize(double paraOriginalErrorRangeArray,
                                 double paraProbability)
Set the error size of one attribute.

参数:
paraErrorRangeArray - the normal error array.
paraProbability - the Probability of [-up, up].
返回:
the error size of one attribute.

normalDistributionQuantile

static double normalDistributionQuantile(double paraProbability)
Normal Distribution Quantile.

参数:
paraProbability - the Probability of [-up, up]. if paraProbability = 0.9973 then return 3; if paraProbability = 0.9545 then return 2; if paraProbability = 0.6827 then return 1;
返回:
the normal distribution quantile.

getNormalErrorSizeArray

public double[] getNormalErrorSizeArray()
Get the normal error array.

返回:
The normal error array.

getAverageValueNormalErrorSize

public double getAverageValueNormalErrorSize()
Get the average value of normal error array.

返回:
The average value of normal error array.

computeErrorSizeArray

public double[] computeErrorSizeArray()
Compute the range of normal error.

参数:
paraDelta - the adjusting factor
返回:
The boundary of normal error array.

creatNormalError

public double creatNormalError(double paraErrorRange,
                               int seed)
Create new data with normal distribution observational error according to error range.

参数:
paraErrorRange - The error range of normal error.
seed - The seed of random.
返回:
a random data.