social_learning.DiversityAnalyzer.DiversityAnalyzer C# (CSharp) Method

DiversityAnalyzer() public method

public DiversityAnalyzer ( World world ) : System
world World
return System
        public DiversityAnalyzer(World world)
        {
            _world = world;
            locations = new int[numlocations][];
            for (int i = 0; i < numlocations; i++)
                locations[i] = new int[2];
            orientations = new int[100];
            velocities = new float[100];
            for (int i = 0; i < numlocations; i++)
            {
                locations[i][0] = _random.Next() % world.Width;
                locations[i][1] = _random.Next() % world.Height;
                orientations[i] = _random.Next() % 360;
                velocities[i] = (float)_random.NextDouble() * 5f;
            }
            
        }