| 1 | /* HMM_def.h |
| 2 | * |
| 3 | * Copyright (C) 2010-2018 David Weenink |
| 4 | * |
| 5 | * This code is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; either version 2 of the License, or (at |
| 8 | * your option) any later version. |
| 9 | * |
| 10 | * This code is distributed in the hope that it will be useful, but |
| 11 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | * General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 | */ |
| 18 | |
| 19 | |
| 20 | #define ooSTRUCTcxx . . $ `dwtools/HMM_def.h:20:9`! HMMState |
| 21 | oo_DEFINE_CLASScxx . . $ `sys/oo_READ_BINARY.h:148:9`! (HMMState, Daata) |
| 22 | |
| 23 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (label) |
| 24 | |
| 25 | oo_END_CLASScxx . . $ `sys/oo_READ_BINARY.h:154:9`! (HMMState) |
| 26 | #undef ooSTRUCTcxx . . $ `dwtools/HMM_def.h:20:9`! |
| 27 | |
| 28 | |
| 29 | #define ooSTRUCTcxx . . $ `dwtools/HMM_def.h:29:9`! HMMObservation |
| 30 | oo_DEFINE_CLASScxx . . $ `sys/oo_READ_BINARY.h:148:9`! (HMMObservation, Daata) |
| 31 | |
| 32 | oo_STRINGcxx . . $ `sys/oo.h:116:9`! (label) |
| 33 | oo_OBJECTcxx . . $ `sys/oo_READ_BINARY.h:101:9`! (GaussianMixture, 0, gm) |
| 34 | |
| 35 | oo_END_CLASScxx . . $ `sys/oo_READ_BINARY.h:154:9`! (HMMObservation) |
| 36 | #undef ooSTRUCTcxx . . $ `dwtools/HMM_def.h:29:9`! |
| 37 | |
| 38 | |
| 39 | #define ooSTRUCTcxx . . $ `dwtools/HMM_def.h:39:9`! HMM |
| 40 | oo_DEFINE_CLASScxx . . $ `sys/oo_READ_BINARY.h:148:9`! (HMM, Daata) |
| 41 | |
| 42 | oo_INTcxx . . $ `sys/oo.h:44:9`! (notHidden) // to model a Markov model instead of HMM |
| 43 | oo_INTcxx . . $ `sys/oo.h:44:9`! (leftToRight) |
| 44 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfStates) |
| 45 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfObservationSymbols) |
| 46 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfMixtureComponents) |
| 47 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (componentDimension) |
| 48 | oo_ENUMcxx . . $ `sys/oo.h:101:9`! (kHMMstorage, componentStorage) |
| 49 | oo_FROMcxx . . $ `sys/oo_READ_BINARY.h:157:9`! (1) |
| 50 | oo_VECcxx . . $ `sys/oo.h:74:9`! (initialStateProbs, numberOfStates) |
| 51 | oo_ENDFROMcxx . . $ `sys/oo_READ_BINARY.h:162:9`! |
| 52 | #if oo_READINGcxx . . $ `sys/oo_READ_BINARY.h:171:9`! |
| 53 | oo_VERSION_UNTILcxx . . $ `sys/oo.h:205:9`! (1) |
| 54 | oo_MATcxx . . $ `sys/oo.h:82:9`! (transitionProbs, numberOfStates + 1, numberOfStates + 1) |
| 55 | ourcxx . . $ `melder/melder.h:42:9`! initialStateProbs =cxx . . $ autovector#`operator=`(f4f0443dbfdd1e40). copy_VECcxx . . $ copy_VEC(d4415e68b25283a8). (ourcxx . . $ `melder/melder.h:42:9`! transitionProbs.rowcxx . . $ automatrix#row(2d545b3cb3f8e666). (1).partcxx . . $ vector#part(ae267db9e2c04be7). (1, ourcxx . . $ `melder/melder.h:42:9`! numberOfStates)); |
| 56 | ourcxx . . $ `melder/melder.h:42:9`! transitionProbs =cxx . . $ automatrix#`operator=`(a0f46581f260c488). copy_MATcxx . . $ copy_MAT(a392b09ce3fc3972). (ourcxx . . $ `melder/melder.h:42:9`! transitionProbs.horizontalBandcxx . . $ automatrix#horizontalBand(244fa7aab97a21b1). (2, ourcxx . . $ `melder/melder.h:42:9`! numberOfStates + 1)); |
| 57 | oo_VERSION_ELSEcxx . . $ `sys/oo.h:209:9`! |
| 58 | oo_MATcxx . . $ `sys/oo.h:82:9`! (transitionProbs, numberOfStates, numberOfStates + 1) |
| 59 | oo_VERSION_ENDcxx . . $ `sys/oo.h:211:9`! |
| 60 | #else |
| 61 | oo_MAT (transitionProbs, numberOfStates, numberOfStates + 1) |
| 62 | #endif |
| 63 | oo_MATcxx . . $ `sys/oo.h:82:9`! (emissionProbs, numberOfStates, numberOfObservationSymbols) |
| 64 | oo_OBJECTcxx . . $ `sys/oo_READ_BINARY.h:101:9`! (HMMStateList, 0, states) |
| 65 | oo_OBJECTcxx . . $ `sys/oo_READ_BINARY.h:101:9`! (HMMObservationList, 0, observationSymbols) |
| 66 | |
| 67 | #if oo_DECLARINGcxx . . $ `sys/oo_READ_BINARY.h:166:9`! |
| 68 | void v1_info () |
| 69 | override; |
| 70 | #endif |
| 71 | |
| 72 | oo_END_CLASScxx . . $ `sys/oo_READ_BINARY.h:154:9`! (HMM) |
| 73 | #undef ooSTRUCTcxx . . $ `dwtools/HMM_def.h:39:9`! |
| 74 | |
| 75 | |
| 76 | #define ooSTRUCTcxx . . $ `dwtools/HMM_def.h:76:9`! HMMViterbi |
| 77 | oo_DEFINE_CLASScxx . . $ `sys/oo_READ_BINARY.h:148:9`! (HMMViterbi, Daata) |
| 78 | |
| 79 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfTimes) |
| 80 | oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfStates) |
| 81 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (prob) |
| 82 | oo_MATcxx . . $ `sys/oo.h:82:9`! (viterbi, numberOfStates, numberOfTimes) |
| 83 | oo_INTMATcxx . . $ `sys/oo.h:84:9`! (bp, numberOfStates, numberOfTimes) |
| 84 | oo_INTVECcxx . . $ `sys/oo.h:76:9`! (path, numberOfTimes) |
| 85 | |
| 86 | oo_END_CLASScxx . . $ `sys/oo_READ_BINARY.h:154:9`! (HMMViterbi) |
| 87 | #undef ooSTRUCTcxx . . $ `dwtools/HMM_def.h:76:9`! |
| 88 | |
| 89 | |
| 90 | /* End of file HMM_def.h */ |