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