演化仿真引擎 Evolve
- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/mamaral/Evolve
软件介绍
Evolve 是一个用 Objective-C 编写的演化仿真引擎。
示例代码:
- (void)evaluateFitnessForPopulation {
NSArray *organisms = self.evolutionManager.population.organisms;
for (Organism *organism in organisms) {
NSString *genomeString = organism.genome.sequence;
NSInteger geneSequenceLength = genomeString.length;
NSInteger correctCharacters = 0;
for (NSInteger charIndex = 0;
charIndex < geneSequenceLength; charIndex++) {
if ([genomeString characterAtIndex:charIndex]
== [kTargetString characterAtIndex:charIndex]) {
correctCharacters++;
}
}
organism.fitness = correctCharacters;
}
}
Head First Design Patterns
Elisabeth Freeman、Eric Freeman、Bert Bates、Kathy Sierra、Elisabeth Robson / O'Reilly Media / 2004-11-1 / USD 49.99
You're not alone. At any given moment, somewhere in the world someone struggles with the same software design problems you have. You know you don't want to reinvent the wheel (or worse, a flat tire),......一起来看看 《Head First Design Patterns》 这本书的介绍吧!
