coser.datamodel.informationsystem
类 NumericInformationSystem

java.lang.Object
  继承者 Instances
      继承者 coser.datamodel.informationsystem.RoughInformationSystem
          继承者 coser.datamodel.informationsystem.NumericInformationSystem

public class NumericInformationSystem
extends RoughInformationSystem

Summary: Information system with numeric values.

this.NumericInformationSystem Author: Xu He hexu_grclab@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: September 14, 2012.
Last modify time: October 8, 2012.


字段摘要
修饰符 和 类型 字段 和 描述
(专用软件包)  double[][] data_array
          The double dataArray of the decision table
 
从类 coser.datamodel.informationsystem.RoughInformationSystem 继承的字段
allConditions, allReducts, allReductsFilename, allSubreducts, allSubreductsFilename, arffFilename, backtrackSteps, candidateReductArray, candidateSubreductArray, candidateSubreductEntropyArray, core, currentReduct, currentSelectedAttributes, endTime, minimalReductSize, numberOfAttributes, numberOfCandidateReducts, numberOfCandidateSubreducts, numberOfInstances, optimalReduct, runTimeInformation, startTime, STRANGE_VALUE
 
构造方法摘要
构造函数 和 描述
NumericInformationSystem(Instances dataset)
          Construct the information system.
NumericInformationSystem(Instances dataset, int capacity)
          Construct the information system.
NumericInformationSystem(Instances source, int first, int toCopy)
          Construct the information system.
NumericInformationSystem(java.io.Reader reader)
          Construct the information system.
NumericInformationSystem(java.lang.String name, FastVector attInfo, int capacity)
          Construct the information system.
 
方法摘要
修饰符 和 类型 方法 和 描述
 double[] assignValue(double[][] Array, int j)
          The method to assign the value of a j column of the two-dimensional array to a new array.
 double average(double[][] Array, int i)
          The method to get average value of array.
 double[] columnValue(double[][] Array, int paranum)
          The method to print j column of the two-dimensional array.
 double[] delete(double[] Array)
          The method to delete the repeat value of array.
 void discretize(int k, int algorithm)
          Discretize the numeric data into a normal data.
 double[][] InverseAssignValue(double[] equalWidthinstances, double[][] ArraySecond, int j)
          The method to assign the value of an unary array to a j column of the two-dimensional array.
 double Max(double[] Array)
          The method to get maximum value of array.
 double Min(double[] Array)
          The method to get minimum value of array.
 void print(double[] Array)
          The method to print the double array.
 void print(int[] EqualWidthinstances)
          The method to print the int array.
 void print(java.lang.String[] Array)
          The method to print the string array.
 void printArray(double[][] Array)
           
 void printArray(int[][] Array)
          The method to print the two-dimensional array.
 void printArray(java.lang.String[][] a)
           
 void relationNormalize()
          Discretize the relation data into a normal data.
 double[] Sort(double[] Array)
          The method to sort array.
 double[][] SortArray(double[][] Array, int index)
          The method to sort two-dimensional array.
 double[][] toDoubleMatrix()
          Convert the information system into a double matrix
 java.lang.String toString()
          For toString().
 
从类 coser.datamodel.informationsystem.RoughInformationSystem 继承的方法
computeCore, computeCore, delete, divideInTwo, generateBooleanArrays, getAllReductsFilename, getAllReductsString, getAllSubreductsFilename, getArffFilename, getArffSource, getBacktrackSteps, getCandidateSubreductEntropyArray, getCurrentReduct, getCurrentReductIndex, getNumberOfConditions, getOptimalReduct, getReductionTime, getReductString, getRunTimeInformation, hasMissingValue, initializeForReduction, isBoolean, isNominal, isNormalized, isNormalizedJudge, isNumeric, normalize, printAllReducts, readAllReducts, readAllReducts, readAllSubreducts, readAllSubreducts, removeSupersets, resetNumberOfAttributes, setAllReductsFilename, setAllReductsFilename, setAllSubreductsFilename, setAllSubreductsFilename, setArffFilename, setCurrentReduct, setCurrentReduct, writeAllReducts
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

data_array

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

构造方法详细信息

NumericInformationSystem

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

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

NumericInformationSystem

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

抛出:
java.lang.Exception

NumericInformationSystem

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

抛出:
java.lang.Exception

NumericInformationSystem

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

抛出:
java.lang.Exception

NumericInformationSystem

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

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

toDoubleMatrix

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

返回:
A double matrix representing the data

toString

public java.lang.String toString()
For toString(). See interface toString().

覆盖:
类 RoughInformationSystem 中的 toString
返回:
object status.

discretize

public void discretize(int k,
                       int algorithm)
                throws java.lang.Exception
Discretize the numeric data into a normal data.

抛出:
java.lang.Exception

relationNormalize

public void relationNormalize()
                       throws java.lang.Exception
Discretize the relation data into a normal data.

抛出:
java.lang.Exception

Max

public double Max(double[] Array)
The method to get maximum value of array.


Min

public double Min(double[] Array)
The method to get minimum value of array.


average

public double average(double[][] Array,
                      int i)
The method to get average value of array.


Sort

public double[] Sort(double[] Array)
The method to sort array.


SortArray

public double[][] SortArray(double[][] Array,
                            int index)
The method to sort two-dimensional array.


print

public void print(int[] EqualWidthinstances)
The method to print the int array.


print

public void print(double[] Array)
The method to print the double array.


print

public void print(java.lang.String[] Array)
The method to print the string array.


printArray

public void printArray(int[][] Array)
The method to print the two-dimensional array. int, double, string


printArray

public void printArray(java.lang.String[][] a)

printArray

public void printArray(double[][] Array)

columnValue

public double[] columnValue(double[][] Array,
                            int paranum)
The method to print j column of the two-dimensional array.


assignValue

public double[] assignValue(double[][] Array,
                            int j)
The method to assign the value of a j column of the two-dimensional array to a new array.


InverseAssignValue

public double[][] InverseAssignValue(double[] equalWidthinstances,
                                     double[][] ArraySecond,
                                     int j)
The method to assign the value of an unary array to a j column of the two-dimensional array.


delete

public double[] delete(double[] Array)
The method to delete the repeat value of array.