Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.CategoryMatrix Class Reference

Inheritance diagram for kddml.Core.DataMining.CategoryMatrix:

kddml.Core.DataMining.CategoryMatrixManager kddml.Core.DataMining.ClassificationTrees.ConfusionMatrix kddml.Core.DataMining.SymmetricMatrix kddml.Core.DataMining.DiagonalMatrix List of all members.

Public Member Functions

 CategoryMatrix (String[] categories)
String[] getCategories ()
double getValue (String row_name, String column_name) throws MiningModelException
void setValue (String row_name, String column_name, double value) throws MiningModelException
String toString ()

Protected Member Functions

 CategoryMatrix (Element category_matrix)

Package Functions

int getIndex (String category)

Detailed Description

A CategoryMatrix represents a matrix whose axes are categories. The CategoryMatrix can be used to represent confusion matrix in classification trees or similarity matrix in clustering.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Andrea Romei (romei@di.unipi.it)
Version:
2.0.16


Constructor & Destructor Documentation

kddml.Core.DataMining.CategoryMatrix.CategoryMatrix String[]  categories  ) 
 

Build an empty matrix with default values 0.

Parameters:
categories String[]

kddml.Core.DataMining.CategoryMatrix.CategoryMatrix Element  category_matrix  )  [protected]
 

Proprietary constructor given the XML element.

Parameters:
category_matrix Element


Member Function Documentation

String [] kddml.Core.DataMining.CategoryMatrix.getCategories  ) 
 

Returns a collection of category values used to represent the axes of the matrix.

Returns:
String[]

Implements kddml.Core.DataMining.CategoryMatrixManager.

Reimplemented in kddml.Core.DataMining.ClassificationTrees.ConfusionMatrix.

double kddml.Core.DataMining.CategoryMatrix.getValue String  row_name,
String  column_name
throws MiningModelException
 

Returns the value of the matrix for a given row and column.

Parameters:
row_name String the row name of the matrix.
column_name String the column name of the matrix.
Exceptions:
MiningModelException if the row_name or the column_name has not been found.
Returns:
double

Implements kddml.Core.DataMining.CategoryMatrixManager.

Reimplemented in kddml.Core.DataMining.ClassificationTrees.ConfusionMatrix.

void kddml.Core.DataMining.CategoryMatrix.setValue String  row_name,
String  column_name,
double  value
throws MiningModelException
 

Sets the value for a given row and a given column.

Parameters:
row_name String the row name of the matrix.
column_name String the column name of the matrix.
value double
Exceptions:
MiningModelException if the row_name or the column_name has not been found.

Implements kddml.Core.DataMining.CategoryMatrixManager.

Reimplemented in kddml.Core.DataMining.ClassificationTrees.ConfusionMatrix, kddml.Core.DataMining.DiagonalMatrix, and kddml.Core.DataMining.SymmetricMatrix.

int kddml.Core.DataMining.CategoryMatrix.getIndex String  category  )  [package]
 

Returns the index of the categoric. Returns -1 if not found.

Parameters:
category String
Returns:
int

String kddml.Core.DataMining.CategoryMatrix.toString  ) 
 

Returns a representation of this object as string.

Returns:
String

Reimplemented in kddml.Core.DataMining.ClassificationTrees.ConfusionMatrix.


Generated on Thu Feb 23 13:04:37 2006 for kddml by  doxygen 1.4.3