Table of Contents

Class: AggregateFunctionView compClust/mlx/views/AggregateFunctionView.py

This view takes in a list of lists and a function. Each sublist defines a set of row or column keys to merge using the passed function. Rows and columns which are not in any of the lists are passed through as is, though their relative order may have changed.

Base Classes   
BaseView
Methods   
__init__
getData
getNumCols
getNumRows
setFunction
setKeylist
  __init__ 
__init__ (
        self,
        dataset,
        keylist=[],
        function=None,
        )

  getData 
getData ( self,  key=None )

Exceptions   
ValueEror
  getNumCols 
getNumCols ( self )

  getNumRows 
getNumRows ( self )

  setFunction 
setFunction ( self,  function )

  setKeylist 
setKeylist ( self,  keylist=[] )

Takes in a list of lists of keys which are the sets of rows and columns to group together and apply the function to.


Table of Contents

This document was automatically generated on Wed Aug 27 14:24:57 2003 by HappyDoc version 2.1