source: cpp/frams/genetics/fH/fH_conv.cpp @ 780

Last change on this file since 780 was 780, checked in by Maciej Komosinski, 6 years ago

Added sources for genetic encodings fB, fH, fL

File size: 447 bytes
Line 
1#include "fH_conv.h"
2
3SString GenoConv_fH0::convert(SString &i, MultiMap *map, bool using_checkpoints)
4{
5        fH_Builder builder(0, NULL != map);
6        builder.parseGenotype(i);
7        if (!builder.sticksExist()) return "";
8        Model * m = builder.buildModel(using_checkpoints);
9        if (!m) return SString(); // oops
10        if (NULL != map)
11                // generate to-f0 conversion map
12                m->getCurrentToF0Map(*map);
13        SString gen = m->getF0Geno().getGenes();
14        delete m;
15        return gen;
16}
Note: See TracBrowser for help on using the repository browser.