Main Page | Class Hierarchy | Class List | Class Members

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

List of all members.

Public Member Functions

int compare (Object seq_element1, Object seq_element2)

Detailed Description

This class is used to establish an order between the elements of a sequence.

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.CompareSequenceElements< Object >.compare Object  seq_element1,
Object  seq_element2
 

This method is used to compare two elements of a sequence. Comparison task follows this order :

  • If the elements have a support, then comparison is done using the support.
  • If elements don't have support or the support is the same, then comparison is done using the number of items of the elements (long elements are preferred, i.e. are "greater").
  • A total order is obtained comparing the string representation of the elements.

Parameters:
seq_element1 element to be compared
seq_element2 element to be compared
Returns:
returns 1, 0 or -1 if seq_element1 is less than, equal to or greater than seq_element2


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