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