public override void InitOperation(Frame f) { Affinity tempProximity = new Proximity(scalarFactor); tempProximity.computeAffinity(f); tempProxMatrix = tempProximity.getCopyMatrix(); }
public static Group createGroup(Frame IdFrame) { return new Group(IdFrame); }
public static Group createGroup(Frame IdFrame, int GN, Dictionary<int, List<Person>> grouping) { return new Group(IdFrame, GN, grouping); }
//calcola la matrice affinità dato un frame (Mara) public void computeAffinity(Frame f) { this.F = f; InitOperation(f); AdjacencyMatrix = Matrix<double>.Build.Dense(F.N, F.N, HowToCompute); }
public virtual void InitOperation(Frame f) {}
public Affinity(Frame f) { this.F = f; AdjacencyMatrix = Matrix<double>.Build.Dense(f.N, f.N); //computeAffinity(); }
public Group(Frame IdFrame) { this.IdFrame = IdFrame; this.GN = 0; this.Grouping = new Dictionary<int, List<Person>>(); }
public Dictionary<int, List<Person>> Grouping { get; private set; }// public Group(Frame IdFrame,int GN,Dictionary<int,List<Person>> grouping) { this.IdFrame = IdFrame; this.GN = GN; this.Grouping = grouping; }