SetCenter() 공개 메소드

public SetCenter ( int x, int y, int z ) : void
x int
y int
z int
리턴 void
예제 #1
0
 private void SetCenterRandomlyForEmptyCluster(ClusterPrototype cluster)
 {
     if (cluster.PointCount == 0)
     {
         cluster.SetCenter(this.random.Next(0, this.size.Width - 1), this.random.Next(0, this.size.Height - 1), this.random.Next((int)this.zRange.Min, (int)this.zRange.Max));
     }
 }
예제 #2
0
파일: KMeans.cs 프로젝트: an83/KinectTouch2
 private void SetCenterRandomlyForEmptyCluster(ClusterPrototype cluster)
 {
     if (cluster.PointCount == 0)
     {
         cluster.SetCenter(this.random.Next(0, this.size.Width - 1), this.random.Next(0, this.size.Height - 1), this.random.Next((int)this.zRange.Min, (int)this.zRange.Max));
     }
 }
예제 #3
0
 public void Can_Set_Center()
 {
     var cluster = new ClusterPrototype(Point.Zero);
     cluster.SetCenter(1, 2, 3);
     AssertClusterCenterIsAt(cluster, 1, 2, 3);
 }