Home
last modified time | relevance | path

Searched refs:smo (Results 1 – 25 of 1911) sorted by relevance

12345678910>>...77

/dports/science/ghmm/ghmm-0.9-rc3/ghmmwrapper/
H A Dgql.c74 smo->M = M; in smodel_alloc_fill()
75 smo->N = N; in smodel_alloc_fill()
78 if (!(smo->s = calloc(sizeof(*(smo->s)), (smo->N)))) in smodel_alloc_fill()
82 ghmm_cstate_alloc(&smo->s[i], smo->M, smo->N, smo->N, cos); in smodel_alloc_fill()
84 return smo; in smodel_alloc_fill()
109 if (smo->s && smo->s[i].out_a && smo->s[j].in_a) { in smodel_set_transition()
134 if (smo->s && smo->s[i].out_a && smo->s[j].in_a) { in smodel_get_transition()
148 if (!smo->s) in smodel_set_mean()
154 smo->s[i].e[m].mean.vec[k] = mu[m*(smo->dim)+k]; in smodel_set_mean()
164 if (!smo->s) in smodel_set_variance()
[all …]
H A Dsclass_change.c55 int cp_class_change(ghmm_cmodel *smo, const double* seq, int k, int t) { in cp_class_change() argument
82 int python_class_change( ghmm_cmodel* smo, const double *seq, int k, int t ){ in python_class_change() argument
83 char* ModuleName = smo->class_change->python_module; in python_class_change()
84 char* FunctionName = smo->class_change->python_function; in python_class_change()
198 int executePythonCallback(ghmm_cmodel* smo, const double *seq, int k, int t){ in executePythonCallback() argument
245 void setPythonCallback(ghmm_cmodel *smo, PyObject *py_cb){ in setPythonCallback() argument
247 smo->class_change->get_class = executePythonCallback; in setPythonCallback()
/dports/science/ghmm/ghmm-0.9-rc3/ghmm/
H A Dsmodel.c355 ARRAY_CALLOC (smo->s, smo->N); in ghmm_cmodel_read_block()
378 if ((smo->prior < 0 || smo->prior > 1) && smo->prior != -1) { in ghmm_cmodel_read_block()
786 if ((*smo)->s) m_free ((*smo)->s); in ghmm_cmodel_free()
839 memcpy(sm2->s[i].c, smo->s[i].c, sizeof(*(smo->s[i].c)) * smo->s[i].M); in ghmm_cmodel_copy()
840 memcpy(sm2->s[i].e, smo->s[i].e, sizeof(*(smo->s[i].e)) * smo->s[i].M); in ghmm_cmodel_copy()
966 if (smo[i]->N != smo[j]->N) { in ghmm_cmodel_check_compatibility()
1479 smo->M, smo->N, (int) smo->s[0].e[0].type, smo->cos); in ghmm_cmodel_print()
1510 smo->M, smo->N, (int) smo->s[0].e[0].type, smo->cos); in ghmm_cmodel_print_oneA()
1941 if (smo->s && smo->s[i].out_a && smo->s[j].in_a) { in ghmm_cmodel_get_transition()
1956 if (smo->s && smo->s[i].out_a && smo->s[j].in_a) { in ghmm_cmodel_check_transition()
[all …]
H A Dsgenerate.c185 if (i == smo->N) { in ghmm_sgenerate_extensions()
218 class = smo->class_change->get_class (smo, sq->seq[n], n, t); in ghmm_sgenerate_extensions()
223 pos += smo->dim; in ghmm_sgenerate_extensions()
237 class = smo->class_change->get_class (smo, sq->seq[n], n, t); in ghmm_sgenerate_extensions()
305 class = smo->class_change->get_class (smo, sq->seq[n], n, t); in ghmm_sgenerate_extensions()
311 pos += smo->dim; in ghmm_sgenerate_extensions()
386 if (i == smo->N) { in ghmm_sgenerate_single_ext()
457 if (smo->M == 1) in ghmm_sgenerate_single_ext()
475 ghmm_cmodel_get_random_var(smo, i, m, new_O+(t*smo->dim)); in ghmm_sgenerate_single_ext()
527 if (smo->cos > 1) { in ghmm_sgenerate_next_value()
[all …]
H A Dsfoba.c63 alpha_1[i] = smo->s[i].pi * ghmm_cmodel_calc_b(smo->s+i, omega); in sfoba_initforward()
69 alpha_1[i] = smo->s[i].pi * b[i][smo->M]; in sfoba_initforward()
108 T /= smo->dim; in ghmm_cmodel_forward()
122 if (smo->cos == 1) { in ghmm_cmodel_forward()
131 osc = smo->class_change->get_class (smo, O, smo->class_change->k, t); in ghmm_cmodel_forward()
179 osc = smo->class_change->get_class (smo, O, smo->class_change->k, t); in ghmm_cmodel_forward()
215 T /= smo->dim; in ghmm_cmodel_backward()
236 if (smo->cos == 1) { in ghmm_cmodel_backward()
244 osc = smo->class_change->get_class (smo, O, smo->class_change->k, T - 2); in ghmm_cmodel_backward()
261 * ghmm_cmodel_calc_b(smo->s+j_id, O+pos+smo->dim) in ghmm_cmodel_backward()
[all …]
H A Dsreestimate.c104 r->cos = smo->cos; in sreestimate_alloc()
114 r->a_denom = ighmm_cmatrix_stat_alloc (smo->N, smo->cos); in sreestimate_alloc()
122 r->c_num = ighmm_cmatrix_stat_alloc (smo->N, smo->M); in sreestimate_alloc()
133 r->mue_num[i] = ighmm_cmatrix_stat_alloc(smo->s[i].M, smo->dim); in sreestimate_alloc()
145 r->u_num[i] = ighmm_cmatrix_stat_alloc(smo->s[i].M, smo->dim * smo->dim); in sreestimate_alloc()
151 r->mue_u_denom = ighmm_cmatrix_stat_alloc (smo->N, smo->M); in sreestimate_alloc()
156 r->sum_gt_otot = ighmm_cmatrix_stat_alloc (smo->N, smo->M); in sreestimate_alloc()
207 int dim_2 = smo->dim * smo->dim; in sreestimate_init()
400 smo->s[j_id].in_a[osc][l] = smo->s[i].out_a[osc][j]; in sreestimate_setlambda()
501 smo->dim, smo->s[i].e[m].variance.mat); in sreestimate_setlambda()
[all …]
H A Dsviterbi.c70 ARRAY_CALLOC (v->phi, smo->N); in sviterbi_alloc()
79 sviterbi_free (&v, smo->N, T); in sviterbi_alloc()
114 pos = t * smo->dim; in sviterbi_precompute()
138 T /= smo->dim; in ghmm_cmodel_viterbi()
140 v = sviterbi_alloc (smo, T); in ghmm_cmodel_viterbi()
150 for (j = 0; j < smo->N; j++) { in ghmm_cmodel_viterbi()
159 if (smo->cos == 1) { in ghmm_cmodel_viterbi()
168 osc = smo->class_change->get_class (smo, O, smo->class_change->k, t - 1); in ghmm_cmodel_viterbi()
169 if (osc >= smo->cos){ in ghmm_cmodel_viterbi()
184 value = v->phi[smo->s[j].in_id[i]] + log (smo->s[j].in_a[osc][i]); in ghmm_cmodel_viterbi()
[all …]
H A Dsmodel.h213 int ghmm_cmodel_class_change_alloc (ghmm_cmodel * smo);
247 int ghmm_cmodel_free (ghmm_cmodel ** smo);
253 ghmm_cmodel *ghmm_cmodel_copy (const ghmm_cmodel * smo);
261 int ghmm_cmodel_check (const ghmm_cmodel * smo);
302 ghmm_cseq *ghmm_cmodel_generate_sequences (ghmm_cmodel * smo, int seed,
349 void ghmm_cmodel_print (FILE * file, ghmm_cmodel * smo);
356 void ghmm_cmodel_print_oneA (FILE * file, ghmm_cmodel * smo);
389 void ghmm_cmodel_Mue_print (FILE * file, ghmm_cmodel * smo, char *tab,
419 void ghmm_cmodel_fix_print (FILE * file, ghmm_cmodel * smo, char *tab,
480 int ghmm_cmodel_count_free_parameter (ghmm_cmodel ** smo, int smo_number);
[all …]
H A Dsmixturehmm.c77 ghmm_cmodel **smo_initial = NULL, **smo = NULL;
162 ARRAY_CALLOC (smo, total_smo_number);
224 smo[k] = ghmm_cmodel_copy (smo_initial[k]);
225 if (!smo[k]) {
290 ghmm_cmodel_print (smofile, smo[k]);
304 (smo, smo_number, sqd_train, &train_likelihood);
350 ghmm_cmodel_free (&(smo[k]));
406 smo[k]->prior = sum / total_train_w; in ghmm_smixturehmm_cluster()
417 smo_sqd->smo = smo[k]; in ghmm_smixturehmm_cluster()
431 smo[k]->prior = model_weight / total_train_w; in ghmm_smixturehmm_cluster()
[all …]
H A Dsmixturehmm.h58 ghmm_cmodel ** smo, int smo_number);
62 double smixturehmm_like (ghmm_cmodel ** smo, int smo_number,
67 int ghmm_smixturehmm_init (double **cp, ghmm_cseq * sqd, ghmm_cmodel ** smo,
72 int smixturehmm_calc_priors (double **cp, ghmm_cseq * sqd, ghmm_cmodel ** smo,
77 int ghmm_smixturehmm_calc_cp (double **cp, ghmm_cseq * sqd, ghmm_cmodel ** smo,
83 ghmm_cmodel ** smo, int smo_number);
93 ghmm_cmodel ** smo, int smo_number);
H A Dsmap_classify.c141 int ghmm_smap_classify (ghmm_cmodel ** smo, double *result, int smo_number, in ghmm_smap_classify() argument
150 if (smo == NULL || smo_number <= 0 || O == NULL || T < 0) { in ghmm_smap_classify()
155 map = smap_classify_alloc (smo_number, smo[0]->N, T); in ghmm_smap_classify()
159 if (smo[m]->prior == -1) in ghmm_smap_classify()
162 map->prior[m] = smo[m]->prior; in ghmm_smap_classify()
178 if (ghmm_cmodel_forward (smo[m], O, T, NULL, map->alpha[m], map->scale[m], in ghmm_smap_classify()
186 for (n = 0; n < smo[0]->N; n++) in ghmm_smap_classify()
268 if (smo == NULL || smo_number <= 0 || O == NULL || T < 0) { in ghmm_smap_bayes()
275 if (smo[m]->prior == -1) in ghmm_smap_bayes()
278 prior[m] = smo[m]->prior; in ghmm_smap_bayes()
[all …]
/dports/math/R/R-4.1.2/src/library/stats/R/
H A Dsmooth.R35 smo <- .Call(C_Rsm, as.double(x), type, iend) functionVar
39 r <- smooth(x - smo$y, kind = kind, twiceit = FALSE,
41 smo$y <- smo$y + r
42 if(!is.null(smo$iter))
43 smo$iter <- smo$iter + attr(r, "iter")
44 if(!is.null(smo$changed))
45 smo$changed <- smo$changed || attr(r,"changed")
48 smo$y <- ts(smo$y, start=start(x), frequency=frequency(x))
50 structure(smo$y, kind = kind, twiced = twiceit,
51 iter = smo$iter, changed = smo$changed,
/dports/math/libRmath/R-4.1.1/src/library/stats/R/
H A Dsmooth.R35 smo <- .Call(C_Rsm, as.double(x), type, iend) functionVar
39 r <- smooth(x - smo$y, kind = kind, twiceit = FALSE,
41 smo$y <- smo$y + r
42 if(!is.null(smo$iter))
43 smo$iter <- smo$iter + attr(r, "iter")
44 if(!is.null(smo$changed))
45 smo$changed <- smo$changed || attr(r,"changed")
48 smo$y <- ts(smo$y, start=start(x), frequency=frequency(x))
50 structure(smo$y, kind = kind, twiced = twiceit,
51 iter = smo$iter, changed = smo$changed,
/dports/misc/lifelines/lifelines-3.1.1/src/gedlib/
H A Ddateprint.c391 if (smo) { in format_ymd()
412 if (smo) in format_ymd()
425 if (smo) in format_ymd()
432 if (smo) in format_ymd()
445 if (smo) in format_ymd()
452 if (smo) in format_ymd()
462 if (smo) in format_ymd()
483 if (smo) in format_ymd()
493 if (smo) in format_ymd()
502 if (smo) in format_ymd()
[all …]
/dports/finance/xtrader/xtrader-0.99.9_10/util/
H A DMHDate.cpp402 if (*smo == "Jan") in ParseString()
404 else if (*smo == "Feb") in ParseString()
406 else if (*smo == "Mar") in ParseString()
408 else if (*smo == "Apr") in ParseString()
410 else if (*smo == "May") in ParseString()
412 else if (*smo == "Jun") in ParseString()
414 else if (*smo == "Jul") in ParseString()
416 else if (*smo == "Aug") in ParseString()
418 else if (*smo == "Sep") in ParseString()
420 else if (*smo == "Oct") in ParseString()
[all …]
/dports/science/ghmm/ghmm-0.9-rc3/tools/
H A Dsmix_hmm.c31 ghmm_cmodel **smo = NULL; in smix_hmm_run() local
40 smo = ghmm_cmodel_read(argv[2], &smo_number); in smix_hmm_run()
41 if (!smo) {GHMM_LOG_QUEUED(LCONVERTED); goto STOP;} in smix_hmm_run()
57 if (ghmm_smixturehmm_init(cp, sqd[0], smo, smo_number, 5) == -1) { in smix_hmm_run()
61 if (ghmm_smixturehmm_cluster(outfile, cp, sqd[0], smo, smo_number) == -1) { in smix_hmm_run()
67 ghmm_cmodel_print(outfile, smo[k]); in smix_hmm_run()
H A Dsmo2xml.c16 ghmm_cmodel ** smo; in main() local
26 smo = ghmm_cmodel_read(docname, &mo_number); in main()
31 if (smo) { in main()
33 ghmm_cmodel_xml_write(smo, writename, mo_number); in main()
/dports/math/R-cran-acepack/acepack/src/
H A Davas.f331 smo(i)=sm
378 160 if (smo(j+1).ne.smo(j)) go to 170
384 if (j0.gt.1) a=0.5*(smo(j0)-smo(j0-1))
386 if (j.lt.n) b=0.5*(smo(j+1)-smo(j))
391 smo(i)=smo(i)-a+d*(i-j0)
398 sm=smo(j)
402 sm=sm+smo(j)
407 smo(i)=sm
609 smo(j)=a
737 sy=smo(j)*w(j)
[all …]
/dports/misc/rump/buildrump.sh-b914579/src/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dspace_map.c273 space_map_obj_t *smo, objset_t *os) in space_map_load() argument
285 end = smo->smo_objsize; in space_map_load()
286 space = smo->smo_alloc; in space_map_load()
423 smo->smo_alloc += sm->sm_space; in space_map_sync()
425 smo->smo_alloc -= sm->sm_space; in space_map_sync()
450 dmu_write(os, smo->smo_object, smo->smo_objsize, in space_map_sync()
453 smo->smo_objsize += bufsize; in space_map_sync()
470 dmu_write(os, smo->smo_object, smo->smo_objsize, in space_map_sync()
473 smo->smo_objsize += size; in space_map_sync()
486 smo->smo_objsize = 0; in space_map_truncate()
[all …]
/dports/comms/wsjtz/wsjtx/lib/
H A Dsync9.f909 real smo(-5:25) local
70 smo(0:20)=1.0/21.0
71 smo(-5:-1)=-(1.0/21.0)*(21.0/10.0)
72 smo(21:25)=smo(-5)
77 if(i+j.ge.1 .and. i+j.lt.NSMAX) sm=sm + smo(j)*savg(i+j)
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/java.management/share/classes/javax/management/monitor/
H A DStringMonitor.java160 final StringMonitorObservedObject smo = in start() local
162 smo.setStatus(MATCHING_OR_DIFFERING); in start()
280 final StringMonitorObservedObject smo = in setStringToCompare() local
282 smo.setStatus(MATCHING_OR_DIFFERING); in setStringToCompare()
363 final StringMonitorObservedObject smo = in createObservedObject() local
365 smo.setStatus(MATCHING_OR_DIFFERING); in createObservedObject()
366 return smo; in createObservedObject()
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/java.management/share/classes/javax/management/monitor/
H A DStringMonitor.java160 final StringMonitorObservedObject smo = in start() local
162 smo.setStatus(MATCHING_OR_DIFFERING); in start()
280 final StringMonitorObservedObject smo = in setStringToCompare() local
282 smo.setStatus(MATCHING_OR_DIFFERING); in setStringToCompare()
363 final StringMonitorObservedObject smo = in createObservedObject() local
365 smo.setStatus(MATCHING_OR_DIFFERING); in createObservedObject()
366 return smo; in createObservedObject()
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/java.management/share/classes/javax/management/monitor/
H A DStringMonitor.java160 final StringMonitorObservedObject smo = in start() local
162 smo.setStatus(MATCHING_OR_DIFFERING); in start()
280 final StringMonitorObservedObject smo = in setStringToCompare() local
282 smo.setStatus(MATCHING_OR_DIFFERING); in setStringToCompare()
363 final StringMonitorObservedObject smo = in createObservedObject() local
365 smo.setStatus(MATCHING_OR_DIFFERING); in createObservedObject()
366 return smo; in createObservedObject()
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/jdk/src/share/classes/javax/management/monitor/
H A DStringMonitor.java161 final StringMonitorObservedObject smo = in start() local
163 smo.setStatus(MATCHING_OR_DIFFERING); in start()
281 final StringMonitorObservedObject smo = in setStringToCompare() local
283 smo.setStatus(MATCHING_OR_DIFFERING); in setStringToCompare()
364 final StringMonitorObservedObject smo = in createObservedObject() local
366 smo.setStatus(MATCHING_OR_DIFFERING); in createObservedObject()
367 return smo; in createObservedObject()
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/java.management/share/classes/javax/management/monitor/
H A DStringMonitor.java160 final StringMonitorObservedObject smo = in start() local
162 smo.setStatus(MATCHING_OR_DIFFERING); in start()
280 final StringMonitorObservedObject smo = in setStringToCompare() local
282 smo.setStatus(MATCHING_OR_DIFFERING); in setStringToCompare()
363 final StringMonitorObservedObject smo = in createObservedObject() local
365 smo.setStatus(MATCHING_OR_DIFFERING); in createObservedObject()
366 return smo; in createObservedObject()

12345678910>>...77