Skip to content

AFNI/NIfTI Server

Sections
Personal tools
You are here: Home » AFNI » Documentation

Doxygen Source Code Documentation


makemodel.m File Reference

Go to the source code of this file.


Functions

function p if numel (p)
create a matrix to get new
rows 
m (r(:)+nrows *(c(:)-1))
 while (tm)%Get last-numbered effect remaining lne
 v (j, lne)

Variables

function v
function NG
linear terms for j
generate column nrows = size(c,1)
generate row r = repmat((1:nrows)',1,j)
and make it conform with c m = zeros(nrows,ng)
append rows end else Create
model matrix from terms encoded
as bit patterms 
nterms = length(p)
 tm = bitset(tm, lne, 0)

Function Documentation

create a matrix to get new rows m r(:)+nrows *(c(:)-1)   ) 
 

function p if numel  ) 
 

v j  ,
lne 
 

while tm   ) 
 


Variable Documentation

for j
 

Initial value:

2:min(p,ng)
      c = nchoosek(vgen,j)

Definition at line 27 of file makemodel.m.

m = zeros(nrows,ng)
 

Definition at line 21 of file makemodel.m.

function NG
 

Initial value:

 number of grouping variables
% or
%    P = vector of term codes

% We want a matrix with one row per term.  Each row has a 1 for
% the variables participating in the term.  There will be rows
% summing up to 1

Definition at line 3 of file makemodel.m.

generate column nrows = size(c,1)
 

Definition at line 17 of file makemodel.m.

Referenced by colormap_info(), extract_index(), EXTRACT_tsfunc(), extract_xyz(), Form_R_Matrix(), read_glt_matrix(), ReadJPEG(), SUMA_readFScurv(), and vardata().

append rows end else Create model matrix from terms encoded as bit patterms nterms = length(p)
 

Definition at line 25 of file makemodel.m.

generate row r = repmat((1:nrows)',1,j)
 

Definition at line 18 of file makemodel.m.

Referenced by add_extra_color(), AffineBruteForceWarp(), AFNI_vnlist_func_overlay(), analyze_results(), badop(), badstg(), badtag(), badthing(), badtype(), basym(), bfrac(), bgrat(), bup(), c_cos(), c_exp(), c_log(), c_sin(), c_sqrt(), calc_constraints(), calc_full_model(), calc_partial_derivatives(), calc_QuadrantCC(), calc_reduced_model(), calc_SpearmanCC(), calc_sse(), Calc_Trans(), calculate_contrasts(), calculate_differences(), calculate_f_statistic(), calculate_means(), calculate_ss(), calculate_y(), calcWithOffsets(), check_for_valid_inputs(), cmyk_ycck_convert(), color_init(), correlate(), create_node(), csfft_cox(), csfft_nextup(), csfft_print(), d_cnjg(), Daubechies_inverse_pass_1d(), DC_init_im_col(), DC_IRF(), DC_pixel_to_rgb(), DC_rgb_to_pixel(), DC_spectrum_AJJ(), DC_spectrum_ZSS(), decode_mcu(), decode_mcu_AC_first(), decode_mcu_AC_refine(), decode_mcu_DC_first(), doughnut(), dtree_position(), encode_mcu_AC_first(), encode_mcu_AC_refine(), encode_one_block(), erf1(), erfc1(), free(), frexchain(), gam1(), gaminv(), generate_ts_array(), get_options(), GIF_Image_Header(), grat1(), gratio(), Haar_inverse_pass_1d(), htest_one_block(), id(), incbeta_inverse(), initialize_noise_model(), initialize_options(), initialize_program(), initialize_simplex(), main(), Make_RGB_lookup(), malloc(), map_v2s_results(), mkchain(), MRI_5blur_inplace_3D(), mri_drawemptyrectangle(), mri_drawfilledrectangle(), mri_drawline(), mri_drawtext(), mri_dup2D_rgb3(), mri_write_ascii(), neg(), NI_read_header_only(), NI_skip_procins(), NI_val_to_text(), nlfit(), node_addvalue(), node_get_rank(), node_insert(), normal(), output_parameters(), output_results(), PBAR_bigexpose_CB(), pfit(), plx_TXT(), pnm_backgroundxelrow(), pow_zz(), ppm_readppmrow(), ppmd_circle(), ppmd_filledrectangle(), ppmd_line(), ppmd_polyspline(), ppmd_spline3(), ppmd_text(), ps_circle(), putcx1(), qh_initflags(), qh_nostatistic(), qh_option(), qh_printmatrix(), qh_printpointid(), qh_printstatlevel(), qh_printvertex(), qh_sethalfspace(), quadrant_corr(), quadrant_manycorr(), r_cnjg(), RAN_setup(), rand_binormal(), rand_normal(), random_search(), rd_disp_mri_image(), reload_DC_colordef(), report_results(), required_data_files(), restart(), rgb_gray_convert(), rgb_to_pixel(), rgb_to_XImage_clever(), rgb_ycc_convert(), rlog(), rlog1(), save_parameters(), save_results(), segment_envelope(), set_color_memplot(), ShadeVoxel(), simplex_optimization(), spearman_rank_corr(), spearman_rank_manycorr(), stree_insert(), SUMA_Add_Color(), SUMA_AreaDiff(), SUMA_ColorVec_Info(), SUMA_CreateIcosahedron(), SUMA_Interpret_AFNIColor(), SUMA_iRGB_to_OverlayPointer(), SUMA_NewAreaAtRadius(), SUMA_NewVolumeAtRadius(), SUMA_OpenDrawnROI_1D(), SUMA_Paint_SO_ROIplanes(), SUMA_process_NIML_data(), SUMA_readFSannot(), SUMA_ScaleToMap(), SUMA_ScaleToMap_alaAFNI(), SUMA_SphereQuality(), SUMA_StretchToFitLeCerveau(), SUMA_VolDiff(), tb_project_to_sphere(), tc_rgb_to_pixel(), teapot(), terminate_program(), thd_complexscan(), THD_matrix_to_orientation(), tqli(), vpGetMaterial(), vpRotate(), vpSetMaterial(), vpShadeTable(), warper_affine_for(), warper_affine_inv(), warper_shift_for(), warper_shift_inv(), write_parameters(), yuv2rgb_c_16(), yuv2rgb_c_24_bgr(), yuv2rgb_c_24_rgb(), yuv2rgb_c_32(), z_cos(), z_exp(), z_log(), z_sin(), z_sqrt(), and zzmpco_().

tm = bitset(tm, lne, 0)
 

Definition at line 32 of file makemodel.m.

Referenced by AFNI_find_todays_face(), AFNI_get_date_trivia(), apply_3shear(), apply_xshear(), apply_yshear(), apply_zshear(), create_Tmask(), create_Tmask_byte(), create_Tmask_rgba(), extract_byte_fs(), extract_byte_liby(), extract_byte_lifl(), extract_byte_lix(), extract_byte_lixx(), extract_byte_nn(), extract_byte_ts(), extract_byte_tsx(), extract_rgba_nn(), fft(), flip_xy(), flip_xz(), flip_yz(), free_Tmask(), ifft(), L1F_worker(), LSQ_worker(), main(), new_PLUGIN_interface_1999(), project_byte_mip(), qh_buildtracing(), qh_tracemerging(), SUMA_Find_IminImax(), SUMA_StretchToFitLeCerveau(), THD_rota_vol_byte(), UTL_GetDicomDate(), and UTL_GetDicomTime().

v
 

Initial value:

 makemodel(p,ng)
%MAKEMODEL Helper function to make model matrix
%    P = max model term size

Definition at line 26 of file makemodel.m.

 

Powered by Plone

This site conforms to the following standards: