Main Page | Class Hierarchy | Class List | Class Members

kddml.Core.DataMining.SequentialPatterns.CompareSequenceRules< Object > Class Reference

List of all members.

Public Member Functions

int compare (Object seq_rule1, Object seq_rule2)

Detailed Description

This class is used to establish an order between the sequence rules.

Title: KDDML

Description: Knowledge Discovery in Database Environment

Copyright: Copyright (c) 2003-2005

Company: Universita' di Pisa - Dipartimento di Informatica

Author:
Daniele Cerra (daniele@cerra.info)
Version:
2.0.0 alfa


Member Function Documentation

int kddml.Core.DataMining.SequentialPatterns.CompareSequenceRules< Object >.compare Object  seq_rule1,
Object  seq_rule2
 

This method is used to compare two sequence rules. Comparison task follows this order:

  • Comparison is done using the confidence of the rules.
  • If rules have the same support, then comparison is done using the number of sequences that compose the rules (short rules are preferred, i.e. are "greater").
  • A total order is obtained comparing the string representation of the rules.

Parameters:
seq_rule1 rule to be compared
seq_rule2 rule to be compared
Returns:
returns 1, 0 or -1 if seq_rule1 is less than, equal to or greater than seq_rule2


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