/// <summary>Creates a Jaccard index matrix from given data</summary> /// <param name="vectors">the boolean data</param> /// <returns>the similarity matrix based on the data</returns> public static CorrelationMatrix Create(IBooleanMatrix vectors) { BinaryDataCorrelationMatrix cm; int num_entities = vectors.NumberOfRows; try { cm = new Jaccard(num_entities); } catch (OverflowException) { Console.Error.WriteLine("Too many entities: " + num_entities); throw; } cm.ComputeCorrelations(vectors); return cm; }
/// <summary>Creates a Jaccard index matrix from given data</summary> /// <param name="vectors">the boolean data</param> /// <returns>the similarity matrix based on the data</returns> static public CorrelationMatrix Create(IBooleanMatrix vectors) { BinaryDataCorrelationMatrix cm; int num_entities = vectors.NumberOfRows; try { cm = new Jaccard(num_entities); } catch (OverflowException) { Console.Error.WriteLine("Too many entities: " + num_entities); throw; } cm.ComputeCorrelations(vectors); return(cm); }