예제 #1
0
 public ClusterResults(ClusterDataSet <TRow, TColumn> dataSet, DendrogramData rowDendrogram,
                       ImmutableList <DendrogramData> columnDendrograms)
 {
     DataSet                = dataSet;
     RowDendrogram          = rowDendrogram;
     ColumnGroupDendrograms = columnDendrograms;
 }
예제 #2
0
        public ClusterResults <TRow, TColumn> ClusterColumns()
        {
            var clusteredGroups = DataFrameGroups.Select(ClusterDataFrameGroup).ToList();
            var newDataSet      = new ClusterDataSet <TRow, TColumn>(RowLabels, clusteredGroups.Select(tuple => tuple.Item1));

            return(new ClusterResults <TRow, TColumn>(newDataSet, null, ImmutableList.ValueOf(clusteredGroups.Select(tuple => tuple.Item2))));
        }