Main Page | Class Hierarchy | Class List | Class Members

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

List of all members.

Public Member Functions

int compare (Object s1, Object s2)

Detailed Description

This class is used to establish an order between the sequences.

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.CompareSequences< Object >.compare Object  s1,
Object  s2
 

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

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

Parameters:
s1 sequence to be compared
s2 sequence to be compared
Returns:
returns 1, 0 or -1 if s1 is less than, equal to or greater than s2


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