public ClusterResults(ClusterDataSet <TRow, TColumn> dataSet, DendrogramData rowDendrogram, ImmutableList <DendrogramData> columnDendrograms) { DataSet = dataSet; RowDendrogram = rowDendrogram; ColumnGroupDendrograms = columnDendrograms; }
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)))); }