Changeset 6141 for trunk/STAT/ST_ml.cxx

Show
Ignore:
Timestamp:
14/08/09 16:29:27 (3 years ago)
Author:
westram
Message:
  • spellchecked all (phew)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/STAT/ST_ml.cxx

    r6010 r6141  
    307307        if (distr > maxm) 
    308308            distr = maxm; 
    309         st_ml->rate_matrizes[distl].mult(lb, dest); 
    310         st_ml->rate_matrizes[distr].mult(rb, &hbv); 
     309        st_ml->rate_matrices[distl].mult(lb, dest); 
     310        st_ml->rate_matrices[distr].mult(rb, &hbv); 
    311311        dest->mult(&hbv); 
    312312        dest->check_overflow(); 
     
    337337        if (distl > maxm) 
    338338            distl = maxm; 
    339         st_ml->rate_matrizes[distl].mult(lefts, out); 
     339        st_ml->rate_matrices[distl].mult(lefts, out); 
    340340 
    341341        // correct frequencies 
     
    372372    delete[]base_frequencies; 
    373373    delete[]inv_base_frequencies; 
    374     delete[]rate_matrizes; 
     374    delete[]rate_matrices; 
    375375    if (!awt_csp) { 
    376376        delete rates; 
     
    476476} 
    477477 
    478 void ST_ML::create_matrizes(double max_disti, int nmatrizes) { 
     478void ST_ML::create_matrices(double max_disti, int nmatrices) { 
    479479    max_dist = max_disti; 
    480     if (rate_matrizes) 
    481         delete rate_matrizes; 
    482     rate_matrizes = new ST_rate_matrix[nmatrizes]; 
    483     max_matr = nmatrizes; 
     480    if (rate_matrices) 
     481        delete rate_matrices; 
     482    rate_matrices = new ST_rate_matrix[nmatrices]; 
     483    max_matr = nmatrices; 
    484484    step_size = max_dist / max_matr; 
    485485    int i; 
    486486    for (i = 0; i < max_matr; i++) { 
    487         rate_matrizes[i].set((i + 1) * step_size, 0); // ttratio[i] 
     487        rate_matrices[i].set((i + 1) * step_size, 0); // ttratio[i] 
    488488    } 
    489489} 
     
    611611    tree_root->tree->load_sequences_rek(alignment_name, GB_TRUE, GB_TRUE); 
    612612 
    613     /* create matrizes */ 
    614     create_matrizes(2.0, 1000); 
     613    /* create matrices */ 
     614    create_matrices(2.0, 1000); 
    615615 
    616616    ST_sequence_ml::tmp_out = new ST_base_vector[alignment_len];