s-news
[Top] [All Lists]

equivalence classes

To: S-news <s-news@wubios.wustl.edu>
Subject: equivalence classes
From: Ranjan Maitra <maitra@math.umbc.edu>
Date: Mon, 30 Jul 2001 00:14:58 -0400 (EDT)
Dear all,

Does anyone know of a quick way in Splus (or R, for that matter) to
define equivalence classes?

Suppose we are given the following similarity matrix:

      [,1] [,2] [,3] [,4] [,5]
[1,]   1    0    0    1    0
[2,]   0    1    0    0    1
[3,]   0    0    1    1    0
[4,]   1    0    1    1    0
[5,]   0    1    0    0    1

The equivalence classes (or partition) are then {1,3,4} and
{2,5}. Does anyone know how to get these classes/partitions?

I intend reposting a summary of responses received.

Thanks,
Ranjan
-- 
 ***************************************************************************
          Ranjan Maitra, Department of Mathematics and Statistics,
     University of Maryland, Baltimore County, Baltimore, MD 21250, USA.
 ***************************************************************************

  \|/         satyamevajayate         |      tamasomaajyotirgamaya      \|/
  -*-                                 |                                 -*-
  /|\       TRUTH SHALL PREVAIL       |      FROM DARKNESS TO LIGHT     /|\

 ***************************************************************************
   Ph: 410-455-2436   FAX: 410-455-1066   http://www.math.umbc.edu/~maitra
 ***************************************************************************



<Prev in Thread] Current Thread [Next in Thread>
  • equivalence classes, Ranjan Maitra <=