Ignore:
Timestamp:
01/27/12 19:41:10 (8 years ago)
Author:
aivar
Message:

Added 'noise' and 'chi_square_delta' parameters to EcfWrapper and JNI interface.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/projects/slim-curve/src/main/c/loci_curvefitter_SLIMCurveFitter.c

    r7781 r7872  
    2424 * Class:     loci_curvefitter_SLIMCurveFitter 
    2525 * Method:    RLD_fit 
    26  * Signature: (D[DII[DI[D[D[D[D[D[DD)I 
     26 * Signature: (D[DII[DII[D[D[D[D[D[DD)I 
    2727 */ 
    2828JNIEXPORT jint JNICALL Java_loci_curvefitter_SLIMCurveFitter_RLD_1fit 
    2929  (JNIEnv *env, jobject obj, jdouble x_inc, jdoubleArray y, 
    3030        jint fit_start, jint fit_end, jdoubleArray instr, jint n_instr, 
    31         jdoubleArray sig, jdoubleArray z, jdoubleArray a, jdoubleArray tau, 
     31        jint noise, jdoubleArray sig, 
     32        jdoubleArray z, jdoubleArray a, jdoubleArray tau, 
    3233        jdoubleArray fitted, jdoubleArray chi_square, jdouble chi_square_target) { 
    3334 
     
    6162 
    6263    return_value = RLD_fit(x_inc, y_array, fit_start, fit_end, 
    63             instr_array, n_instr, sig_array, z_ref, a_ref, tau_ref, 
     64            instr_array, n_instr, noise, sig_array, z_ref, a_ref, tau_ref, 
    6465            fitted_array, chi_square_ref, chi_square_target); 
    6566 
     
    8687 * Class:     loci_curvefitter_SLIMCurveFitter 
    8788 * Method:    LMA_fit 
    88  * Signature: (D[DII[DI[D[D[II[D[DD)I 
     89 * Signature: (D[DII[DII[D[D[II[D[DDD)I 
    8990 */ 
    9091JNIEXPORT jint JNICALL Java_loci_curvefitter_SLIMCurveFitter_LMA_1fit 
    9192  (JNIEnv *env, jobject obj, jdouble x_inc, jdoubleArray y, 
    9293        jint fit_start, jint fit_end, jdoubleArray instr, jint n_instr, 
    93         jdoubleArray sig, jdoubleArray param, jintArray param_free, jint n_param, 
    94         jdoubleArray fitted, jdoubleArray chi_square, jdouble chi_square_target) { 
     94        jint noise, jdoubleArray sig, 
     95        jdoubleArray param, jintArray param_free, jint n_param, 
     96        jdoubleArray fitted, jdoubleArray chi_square, 
     97        jdouble chi_square_target, jdouble chi_square_delta) { 
    9598 
    9699    jdouble *y_array; 
     
    121124 
    122125    return_value = LMA_fit(x_inc, y_array, fit_start, fit_end, 
    123             instr_array, n_instr, sig_array, param_array, param_free_array, n_param, 
    124             fitted_array, chi_square_ref, chi_square_target); 
     126            instr_array, n_instr, noise, sig_array, 
     127            param_array, param_free_array, n_param, 
     128            fitted_array, chi_square_ref, chi_square_target, chi_square_delta); 
    125129 
    126130    // pass back the arrays 
Note: See TracChangeset for help on using the changeset viewer.