예제 #1
0
파일: ga.cs 프로젝트: Devcon4/ANN-Published
    public chromosome(int chromosomeLength, ga _ecosystem)
    {
        genes = new List<byte>();
        ecosystem = _ecosystem;
        fitness = 1;

        for (int i = 0; i < chromosomeLength; i++) {
            genes.Add((byte)Random.Range(0, ecosystem.codex.Count));
        }
    }
예제 #2
0
    public Organism(GameObject _body, ann _brain, chromosome _dna, ga _ecosystem)
    {
        body = _body;
        brain = _brain;
        dna = _dna;
        ecosystem = _ecosystem;

        cycleDelay = 0.016f;
        name = "";
    }
예제 #3
0
    void Start()
    {
        InitCodex();
        InitPoints();

        ecosystem = new ga(tankCount, 24, codex);
        ecosystem.mattingDelay = waitTime / Time.timeScale;

        CreatePopulation();

        StartCoroutine(ecosystem.ReproductionCycle());
    }
예제 #4
0
 : dsl is BankingFree <A> .AccountDetails ga?GetAccountDetails(ga, bank)
     : dsl is BankingFree <A> .WithdrawalAccountDetails wa?GetWithdrawalAccountDetails(wa, bank)