# HG changeset patch # User Nicolas Saunier # Date 1439243509 14400 # Node ID 4e89341edd29f6fe41b9a0fc668e27da030446bb # Parent 85af65b6d5317852b4b243857330f66d601c86d7 added the capability to enforce a minimum cluster size and re-assign the indicators to other clusters diff -r 85af65b6d531 -r 4e89341edd29 python/events.py --- a/python/events.py Sat Jul 25 23:28:52 2015 -0400 +++ b/python/events.py Mon Aug 10 17:51:49 2015 -0400 @@ -295,13 +295,15 @@ print('unknown type of point: '+pointType) return allPoints -def prototypeCluster(interactions, similarityMatrix, alignmentMatrix, indicatorName, minSimilarity): +def prototypeCluster(interactions, similarityMatrix, alignmentMatrix, indicatorName, minSimilarity, minClusterSize = None): '''Finds exemplar indicator time series for all interactions Returns the prototype indices (in the interaction list) and the label of each indicator (interaction) if an indicator profile (time series) is different enough (