Example #1
0
 public override void InitOperation(Frame f)
 {
     Affinity tempProximity = new Proximity(scalarFactor);
     tempProximity.computeAffinity(f);
     tempProxMatrix = tempProximity.getCopyMatrix();
 }
Example #2
0
 public static Group createGroup(Frame IdFrame)
 {
     return new Group(IdFrame);
 }
Example #3
0
 public static Group createGroup(Frame IdFrame, int GN, Dictionary<int, List<Person>> grouping)
 {
     return new Group(IdFrame, GN, grouping);
 }
Example #4
0
 //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);
 }
Example #5
0
 public virtual void InitOperation(Frame f) {}
Example #6
0
 public Affinity(Frame f)
 {
     this.F = f;
     AdjacencyMatrix = Matrix<double>.Build.Dense(f.N, f.N);
     //computeAffinity();
 }
Example #7
0
 public Group(Frame IdFrame) 
 {
     this.IdFrame = IdFrame;
     this.GN = 0;
     this.Grouping = new Dictionary<int, List<Person>>();
 }
Example #8
0
        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;
        }