plateform
stringclasses
1 value
repo_name
stringlengths
13
113
name
stringlengths
3
74
ext
stringclasses
1 value
path
stringlengths
12
229
size
int64
23
843k
source_encoding
stringclasses
9 values
md5
stringlengths
32
32
text
stringlengths
23
843k
github
mohsenuss91/SOM_matlab-master
som_trajectory.m
.m
SOM_matlab-master/somtoolbox/som_trajectory.m
9,582
utf_8
943fbebf146286d22761e716b557cf75
function som_trajectory(bmus,varargin) %SOM_TRAJECTORY Launch a "comet" trajectory visualization GUI. % % som_show(sM,'umat','all') % bmus = som_bmus(sM,sD); % som_trajectory(bmus) % som_trajectory(bmus, 'data1', sD, 'trajsize', [12 6 3 1]') % som_trajectory(bmus, 'data1', sD.data(:,[1 2 3]), 'name1', {'fii' 'faa...
github
mohsenuss91/SOM_matlab-master
som_vs1to2.m
.m
SOM_matlab-master/somtoolbox/som_vs1to2.m
7,005
utf_8
ff7eede3183ba5dfa54884255dc76c4e
function sS = som_vs1to2(sS) %SOM_VS1TO2 Convert version 1 structure to version 2. % % sSnew = som_vs1to2(sSold) % % sMnew = som_vs1to2(sMold); % sDnew = som_vs1to2(sDold); % % Input and output arguments: % sSold (struct) a SOM Toolbox version 1 structure % sSnew (struct) a SOM Toolbox version 2 struct...
github
mohsenuss91/SOM_matlab-master
rep_utils.m
.m
SOM_matlab-master/somtoolbox/rep_utils.m
18,698
utf_8
729db4f7bcce5f1f91eab7a63c3acdc1
function aout = rep_utils(action,fmt,fid) %REP_UTILS Utilities for print reports and report elements. % % aout = rep_utils(action,fmt,[fid]) % % Input and output arguments ([]'s are optional): % action (string) action identifier % (cell array) {action,par1,par2,...} % ...
github
mohsenuss91/SOM_matlab-master
som_vs2to1.m
.m
SOM_matlab-master/somtoolbox/som_vs2to1.m
8,359
utf_8
7ae2b5258b2e375dd754f63d956a5dcd
function sS = som_vs2to1(sS) %SOM_VS2TO1 Convert version 2 struct to version 1. % % sSold = som_vs2to1(sSnew) % % sMold = som_vs2to1(sMnew); % sDold = som_vs2to1(sDnew); % % Input and output arguments: % sSnew (struct) a SOM Toolbox version 2 struct % sSold (struct) a SOM Toolbox version 1 struct % % F...
github
mohsenuss91/SOM_matlab-master
som_dendrogram.m
.m
SOM_matlab-master/somtoolbox/som_dendrogram.m
9,039
utf_8
43f32770e95d19d4a12855bd8bfb91f3
function [h,Coord,Color,height] = som_dendrogram(Z,varargin) %SOM_DENDROGRAM Visualize a dendrogram. % % [h,Coord,Color,height] = som_dendrogram(Z, [[argID,] value, ...]) % % Z = som_linkage(sM); % som_dendrogram(Z); % som_dendrogram(Z,sM); % som_dendrogram(Z,'coord',co); % % Input and output arguments ([]'s ...
github
mohsenuss91/SOM_matlab-master
som_plotplane.m
.m
SOM_matlab-master/somtoolbox/som_plotplane.m
8,877
utf_8
afada5a6c93a0270c32acbd532af0679
function h=som_plotplane(varargin) %SOM_PLOTPLANE Visualize the map prototype vectors as line graphs % % h=som_plotplane(lattice, msize, data, [color], [scaling], [pos]) % h=som_plotplane(topol, data, [color], [scaling], [pos]) % % som_plotplane('hexa',[5 5], rand(25,4), jet(25)) % som_plotplane(sM, sM.codebook) %...
github
mohsenuss91/SOM_matlab-master
som_seqtrain.m
.m
SOM_matlab-master/somtoolbox/som_seqtrain.m
20,925
utf_8
10804404d112d52c0bf9538861655c63
function [sMap, sTrain] = som_seqtrain(sMap, D, varargin) %SOM_SEQTRAIN Use sequential algorithm to train the Self-Organizing Map. % % [sM,sT] = som_seqtrain(sM, D, [[argID,] value, ...]) % % sM = som_seqtrain(sM,D); % sM = som_seqtrain(sM,sD,'alpha_type','power','tracking',3); % [M,sT] = som_seqtrain(M,D...
github
mohsenuss91/SOM_matlab-master
som_kmeanscolor2.m
.m
SOM_matlab-master/somtoolbox/som_kmeanscolor2.m
5,856
utf_8
b167d8ae2e8d9e2099002b0b6c376772
function [color,centroids]=som_kmeanscolor2(mode,sM,C,initRGB,contrast,R) % SOM_KMEANSCOLOR2 Color codes a SOM according to averaged or best K-means clustering % % color = som_kmeanscolor2('average',sM, C, [initRGB], [contrast],[R]) % % color=som_kmeanscolor2('average',sM,[2 4 8 16],som_colorcode(sM,'rgb1'),'enhance...
github
mohsenuss91/SOM_matlab-master
som_stats_plot.m
.m
SOM_matlab-master/somtoolbox/som_stats_plot.m
4,911
utf_8
04eb5e46e18587318f497985e2ef3672
function som_stats_plot(csS,plottype,varargin) %SOM_STATS_PLOT Plots of data set statistics. % % som_stats_plot(csS, plottype, [argID, value, ...]) % % som_stats_plot(csS,'stats') % som_stats_plot(csS,'stats','p','vert','color','r') % % Input and output arguments ([]'s are optional): % csS (cell array)...
github
mohsenuss91/SOM_matlab-master
sompak_train.m
.m
SOM_matlab-master/somtoolbox/sompak_train.m
6,477
utf_8
c1f8430b537283c08dd052265ce60c99
function sMap=sompak_train(sMap,ft,cout,ct,din,dt,rlen,alpha,radius) %SOMPAK_TRAIN Call SOM_PAK training program from Matlab. % % sMap=sompak_train(sMap,ft,cout,ct,din,dt,rlen,alpha,radius) % % ARGUMENTS ([]'s are optional and can be given as empty: [] or '') % sMap (struct) map struct % (string) filename ...
github
mohsenuss91/SOM_matlab-master
som_kmeanscolor.m
.m
SOM_matlab-master/somtoolbox/som_kmeanscolor.m
4,375
utf_8
b90f1bc73191e2f5c68e2e8afe11269a
function [color,best,kmeans]=som_kmeanscolor(sM,C,initRGB,contrast) % SOM_KMEANSCOLOR Map unit color code according to K-means clustering % % [color, best, kmeans] = som_kmeanscolor(sM, C, [initRGB],[contrast]) % % color = som_kmeanscolor(sM,15,som_colorcode(sM,'rgb1'),'enhance'); % [color,best] = som_kmeansc...
github
mohsenuss91/SOM_matlab-master
vis_valuetype.m
.m
SOM_matlab-master/somtoolbox/vis_valuetype.m
7,502
utf_8
cb7a373fcda9120d69231b2748371740
function flag=vis_valuetype(value, valid, str); % VIS_VALUETYPE Used for type checks in SOM Toolbox visualization routines % % flag = vis_valuetype(value, valid, str) % % Input and output arguments: % value (varies) variable to be checked % valid (cell array) size 1xN, cells are strings or vectors (see below) ...
github
mohsenuss91/SOM_matlab-master
som_neighf.m
.m
SOM_matlab-master/somtoolbox/som_neighf.m
3,518
utf_8
d37974390d75ef52b98cff7dc7fa6a53
function H = som_neighf(sMap,radius,neigh,ntype) %SOM_NEIGHF Return neighborhood function values. % % H = som_neighf(sMap,[radius],[neigh],[ntype]); % % Input and output arguments ([]'s are optional): % sMap (struct) map or topology struct % [radius] (scalar) neighborhood radius (by default, the last used v...
github
mohsenuss91/SOM_matlab-master
som_gui.m
.m
SOM_matlab-master/somtoolbox/som_gui.m
99,744
utf_8
bd53ca09a83b97ca6e40db35df42741c
function som_gui(varargin) %SOM_GUI A GUI for initialization and training of SOM. % % som_gui([sD]) % % som_gui % som_gui(sD) % % Input and output arguments ([]'s are optional) % [sD] (struct) SOM data struct % (matrix) a data matrix, size dlen x dim % % Actually, there are more arguments th...
github
mohsenuss91/SOM_matlab-master
som_dmatminima.m
.m
SOM_matlab-master/somtoolbox/som_dmatminima.m
2,009
utf_8
9e535d4906164073484193ea7ef10560
function minima = som_dmatminima(sM,U,Ne) %SOM_DMATMINIMA Find clusters based on local minima of U-matrix. % % minima = som_dmatminima(sM,[U],[Ne]) % % Input and output arguments ([]'s are optional): % sM (struct) map struct % U (matrix) the distance matrix from which minima is % ...
github
mohsenuss91/SOM_matlab-master
som_stats_table.m
.m
SOM_matlab-master/somtoolbox/som_stats_table.m
3,684
utf_8
0dec0a499ac0af8b81c9d1eae7c1e819
function [sTstats,csThist] = som_stats_table(csS,histlabel) %SOM_STATS_TABLE Statistics table. % % [sTstats,csThist] = som_stats_table(csS) % % sTstats = som_stats_table(csS); % som_table_print(sTstats); % % Input and output arguments ([]'s are optional): % csS (cell array) of statistics struct...
github
mohsenuss91/SOM_matlab-master
som_barplane.m
.m
SOM_matlab-master/somtoolbox/som_barplane.m
13,935
utf_8
75467b21870c4a890f9d50bd7db8c647
function h = som_barplane(varargin) %SOM_BARPLANE Visualize the map prototype vectors as bar charts % % h = som_barplane(lattice, msize, data, [color], [scaling], [gap], [pos]) % h = som_barplane(topol, data, [color], [scaling], [gap], [pos]) % % som_barplane('hexa',[5 5], rand(25,4), jet(4)) % som_barplane(sM, sM....
github
mohsenuss91/SOM_matlab-master
som_recolorbar.m
.m
SOM_matlab-master/somtoolbox/som_recolorbar.m
12,433
utf_8
f6539ba0228a1c13d3b9e317d75ddabf
function h=som_recolorbar(p, ticks, scale, labels) %SOM_RECOLORBAR Refresh and rescale colorbars in the current SOM_SHOW fig. % % h = som_recolorbar([p], [ticks], [scaling], [labels]) % % colormap(jet); som_recolorbar % % Input and output arguments ([]'s are optional) % [p] (vector) subplot number vector ...
github
mohsenuss91/SOM_matlab-master
som_show.m
.m
SOM_matlab-master/somtoolbox/som_show.m
28,122
utf_8
d4dcabfc93b9206fb6cb14eeffb497f1
function h=som_show(sMap, varargin) % SOM_SHOW Basic SOM visualizations: component planes, u-matrix etc. % % h = som_show(sMap, ['argID', value, ...]) % % som_show(sMap); % som_show(sMap,'bar','none'); % som_show(sMap,'comp',[1:3],'umat','all'); % som_show(sMap,'comp',[1 2],'umat',{[1 2],'1,2 only'},'comp',[3:6])...
github
mohsenuss91/SOM_matlab-master
som_show_gui.m
.m
SOM_matlab-master/somtoolbox/som_show_gui.m
21,167
utf_8
04711e9a1ccd09acfe6f6d238cf212f5
function fig = som_show_gui(input,varargin) %SOM_SHOW_GUI A GUI for using SOM_SHOW and associated functions. % % h = som_show_gui(sM); % % Input and output arguments: % sM (struct) a map struct: the SOM to visualize % h (scalar) a handle to the GUI figure % % This is a graphical user interface to make...
github
mohsenuss91/SOM_matlab-master
som_label.m
.m
SOM_matlab-master/somtoolbox/som_label.m
9,503
utf_8
8288c9b7322af1c25b20c13d01f82aef
function [sTo] = som_label(sTo, mode, inds, labels) %SOM_LABEL Give/clear labels to/from map or data struct. % % sTo = som_label(sTo, mode, inds [, labels]) % % sD = som_label(sD,'add',20,'a_label'); % sM = som_label(sM,'replace',[2 4],'a_label'); % sM = som_label(sM,'add',som_bmus(sM,x),'BMU'); % sD = som_la...
github
mohsenuss91/SOM_matlab-master
som_clset.m
.m
SOM_matlab-master/somtoolbox/som_clset.m
9,904
utf_8
a6fb52044a380104fd094e793d0cd2b8
function [sC,old2new,newi] = som_clset(sC,action,par1,par2) % SOM_CLSET Create and/or set values in the som_clustering struct. % % first argument % sC (struct) a som_clustering struct % Z (matrix) size nb-1 x 3, as given by LINKAGE function % base (vector) size dlen x 1, a partitioning o...
github
mohsenuss91/SOM_matlab-master
sompak_init.m
.m
SOM_matlab-master/somtoolbox/sompak_init.m
6,118
utf_8
326ecf24211ec0f7576c9caa06b50998
function sMap=sompak_init(sData,ft,init_type,cout,ct,xdim,ydim,topol,neigh) %SOMPAK_INIT Call SOM_PAK initialization programs from Matlab. % % sMap=sompak_init(sData,ft,init_type,cout,ct,xdim,ydim,topol,neigh) % % ARGUMENTS ([]'s are optional and can be given as empty: [] or '') % sData (struct) data struct % ...
github
mohsenuss91/SOM_matlab-master
som_distortion3.m
.m
SOM_matlab-master/somtoolbox/som_distortion3.m
5,404
utf_8
13e98906922a0ded1181732268ac671c
function [Err,sPropTotal,sPropMunits,sPropComps] = som_distortion3(sM,D,rad) %SOM_DISTORTION3 Map distortion measures. % % [sE,Err] = som_distortion3(sM,[D],[rad]); % % sE = som_distortion3(sM); % % Input and output arguments ([]'s are optional): % sM (struct) map struct % [D] (matrix) a ma...
github
mohsenuss91/SOM_matlab-master
som_drmake.m
.m
SOM_matlab-master/somtoolbox/som_drmake.m
5,514
utf_8
89709796bebe24488d9640dffa2a6465
function [sR,best,sig,Cm] = som_drmake(D,inds1,inds2,sigmea,nanis) % SOM_DRMAKE Make descriptive rules for given group within the given data. % % sR = som_drmake(D,[inds1],[inds2],[sigmea],[nanis]) % % D (struct) map or data struct % (matrix) the data, of size [dlen x dim] % [inds1] (vector) ind...
github
mohsenuss91/SOM_matlab-master
preprocess.m
.m
SOM_matlab-master/somtoolbox/preprocess.m
176,966
utf_8
a8170717a6766685b74076da97fb351e
function preprocess(sData,arg2) %PREPROCESS A GUI for data preprocessing. % % preprocess(sData) % % preprocess(sData) % % Launches a preprocessing GUI. The optional input argument can be % either a data struct or a struct array of such. However, primarily % the processed data sets are loaded to the application us...
github
mohsenuss91/SOM_matlab-master
som_kmeans.m
.m
SOM_matlab-master/somtoolbox/som_kmeans.m
4,244
utf_8
dca5b32dd99e19a186277df2a168dcf2
function [codes,clusters,err] = som_kmeans(method, D, k, epochs, verbose) % SOM_KMEANS K-means algorithm. % % [codes,clusters,err] = som_kmeans(method, D, k, [epochs], [verbose]) % % Input and output arguments ([]'s are optional): % method (string) k-means algorithm type: 'batch' or 'seq' % D (ma...
github
mohsenuss91/SOM_matlab-master
sompak_rb_control.m
.m
SOM_matlab-master/somtoolbox/sompak_rb_control.m
7,240
utf_8
bcfb4ce0fc8edd340c4a5b73afa57746
function varargout=sompak_rb_control(str) %SOMPAK_RB_CONTROL An auxiliary function for SOMPAK_*_GUI functions. % % This is an auxiliary function for SOMPAK_GUI, SOMPAK_INIT_GUI, % SOMPAK_SAMMON_GUI and SOMPAK_TRAIN_GUI functions. It controls the % radio buttons in the GUIs. % % See also SOMPAK_GUI, SOMPAK_INIT_GU...
github
mohsenuss91/SOM_matlab-master
lvq1.m
.m
SOM_matlab-master/somtoolbox/lvq1.m
5,022
utf_8
86a6a5093c040aededf200f82b599cc0
function codebook=lvq1(codebook, data, rlen, alpha); %LVQ1 Trains a codebook with the LVQ1 -algorithm. % % sM = lvq1(sM, D, rlen, alpha) % % sM = lvq1(sM,sD,30*length(sM.codebook),0.08); % % Input and output arguments: % sM (struct) map struct, the class information must be % present on the...
github
mohsenuss91/SOM_matlab-master
som_colorcode.m
.m
SOM_matlab-master/somtoolbox/som_colorcode.m
7,983
utf_8
e110e71452756946ea1943fa0b627791
function colors=som_colorcode(m, colorcode, scaling) %SOM_COLORCODE Calculates a heuristic color coding for the SOM grid % % colors = som_colorcode(m, colorcode, scaling) % % Input and output arguments ([]'s are optional): % m (struct) map or topol struct % (cell array) of form {str,[m1 m2]...
github
mohsenuss91/SOM_matlab-master
som_pieplane.m
.m
SOM_matlab-master/somtoolbox/som_pieplane.m
9,892
utf_8
7d00431bbaad7c3344ddb3a827ada08b
function h=som_pieplane(varargin) %SOM_PIEPLANE Visualize the map prototype vectors as pie charts % % h=som_pieplane(lattice, msize, data, [color], [s], [pos]) % h=som_pieplane(topol, data, [color], [s], [pos]) % % som_pieplane('hexa',[5 5], rand(25,4), jet(4), rand(25,1)) % som_pieplane(sM, sM.codebook); % % Input...
github
shangsiwang/Reliability-master
compute_i2c2.m
.m
Reliability-master/Code/MATLAB/Functions/compute_i2c2.m
653
utf_8
d30938e1ef98342dc6242a7b012c2592
%The function computes i2c2 for data %DATA should be an n*p matrix where each row correspond to a sample %ID should be a vector of length n representing subject of samples %The function computes icc if DATA is 1-dimensional function [ I2C2 ] = compute_i2c2(DATA,ID) [n,p]=size(DATA); kw=zeros(1,p); ku=zeros(1,p); wave=m...
github
shangsiwang/Reliability-master
compute_mnr.m
.m
Reliability-master/Code/MATLAB/Functions/compute_mnr.m
928
utf_8
468e954a7d45a762267dc95f6b4b46e5
% The function computes mnr for data % D should be an n*n matrix recording pairwise distance % ID should be a vector of length n representing subject id % of each row of D % The output are MNR of data set, standard error of MNR estimate % and all MNRs for each pair of observations. % Usage: % MNR=compute_mnr(D,ID) %[...
github
shangsiwang/Reliability-master
build_graph.m
.m
Reliability-master/Code/MATLAB/Forgreg/build_graph.m
695
utf_8
ab56f9736bd1bedc27a803f156a81a0c
% The function computes complete graphs based on time series % The input should be a k*T*n or k*T matrix where % k is the number of regions of interest % T is the length of time series % n is the number subject % The output is a k*k*n complete matrix which records the % absolute correlations between rois function [grap...
github
shangsiwang/Reliability-master
graph_todist.m
.m
Reliability-master/Code/MATLAB/Forgreg/graph_todist.m
279
utf_8
5a034f0fd47d6e0d1bc9dccadd7ef165
% The function compute pairwise distance between graphs % The input should be k*k*n which represents n graphs % The output is n*n distance matrix function [D]=graph_todist(graphs) [k,~,n]=size(graphs); graphs=reshape(graphs,k*k,n)'; D=squareform(pdist(graphs,'euclidean')); end
github
shangsiwang/Reliability-master
compute_mnr.m
.m
Reliability-master/Code/MATLAB/Forgreg/compute_mnr.m
928
utf_8
468e954a7d45a762267dc95f6b4b46e5
% The function computes mnr for data % D should be an n*n matrix recording pairwise distance % ID should be a vector of length n representing subject id % of each row of D % The output are MNR of data set, standard error of MNR estimate % and all MNRs for each pair of observations. % Usage: % MNR=compute_mnr(D,ID) %[...
github
shangsiwang/Reliability-master
build_graph.m
.m
Reliability-master/Code/MATLAB/Foreric/process_compute_64pipes/build_graph.m
696
utf_8
149b8761e22c74bda55d17f149c7da63
% The function computes complete graphs based on time series % The input should be a k*T*n or k*T matrix where % k is the number of regions of interest % T is the length of time series % n is the number subject % The output is a k*k*n complete matrix which records the % absolute correlations between rois function [grap...
github
shangsiwang/Reliability-master
graph_todist.m
.m
Reliability-master/Code/MATLAB/Foreric/process_compute_64pipes/graph_todist.m
279
utf_8
5a034f0fd47d6e0d1bc9dccadd7ef165
% The function compute pairwise distance between graphs % The input should be k*k*n which represents n graphs % The output is n*n distance matrix function [D]=graph_todist(graphs) [k,~,n]=size(graphs); graphs=reshape(graphs,k*k,n)'; D=squareform(pdist(graphs,'euclidean')); end
github
shangsiwang/Reliability-master
compute_mnr.m
.m
Reliability-master/Code/MATLAB/Foreric/process_compute_64pipes/compute_mnr.m
928
utf_8
468e954a7d45a762267dc95f6b4b46e5
% The function computes mnr for data % D should be an n*n matrix recording pairwise distance % ID should be a vector of length n representing subject id % of each row of D % The output are MNR of data set, standard error of MNR estimate % and all MNRs for each pair of observations. % Usage: % MNR=compute_mnr(D,ID) %[...
github
shangsiwang/Reliability-master
build_graph.m
.m
Reliability-master/Code/MATLAB/Foreric/process_fmrinew/build_graph.m
696
utf_8
149b8761e22c74bda55d17f149c7da63
% The function computes complete graphs based on time series % The input should be a k*T*n or k*T matrix where % k is the number of regions of interest % T is the length of time series % n is the number subject % The output is a k*k*n complete matrix which records the % absolute correlations between rois function [grap...
github
shangsiwang/Reliability-master
graph_todist.m
.m
Reliability-master/Code/MATLAB/Foreric/process_fmrinew/graph_todist.m
279
utf_8
5a034f0fd47d6e0d1bc9dccadd7ef165
% The function compute pairwise distance between graphs % The input should be k*k*n which represents n graphs % The output is n*n distance matrix function [D]=graph_todist(graphs) [k,~,n]=size(graphs); graphs=reshape(graphs,k*k,n)'; D=squareform(pdist(graphs,'euclidean')); end
github
shangsiwang/Reliability-master
compute_mnr.m
.m
Reliability-master/Code/MATLAB/Foreric/process_fmrinew/compute_mnr.m
928
utf_8
468e954a7d45a762267dc95f6b4b46e5
% The function computes mnr for data % D should be an n*n matrix recording pairwise distance % ID should be a vector of length n representing subject id % of each row of D % The output are MNR of data set, standard error of MNR estimate % and all MNRs for each pair of observations. % Usage: % MNR=compute_mnr(D,ID) %[...
github
pakitochus/mapBrain-master
hmmPaths.m
.m
mapBrain-master/hmmPaths.m
4,096
utf_8
8af2e957d4ee1f38fd39cd83ca131d5c
function points = hmmPaths(center, im, Ith, e, azim, elev, xfin) %RBFPATHS performs a path tracing in a 3D intensity map (e.g. an MRI image) %using Hidden Markov Models and a RBF based robability function, as in [1]. % % POINTS = HMMPATHS(CENTER, IM, ITH, E, ...) creates radiuses starting in % point CENTER in the 3...
github
fethallah/geodesics4meshes-master
print2im.m
.m
geodesics4meshes-master/matlab/toolbox/print2im.m
7,938
utf_8
c36ec20620bf599a24eb42336f47939e
%PRINT2IM Prints cropped, anti-aliased figures to image file and/or array % % Examples: % print2im filename % print2im(..., fig_handle) % print2im(..., '-alpha') % A = print2im(...) % [A alpha] = print2im(...) % % This function saves and/or outputs a figure as an image nicely, without % the need to...
github
fethallah/geodesics4meshes-master
GetEdges.m
.m
geodesics4meshes-master/matlab/toolbox/GetEdges.m
613
utf_8
30f89c7b08521e1c58af66687940aef2
function Edges=GetEdges(Trig) Neighbors=NeighborhoodFromNodes(Trig.Facets,Trig.NVerts); Edges=[]; for j=1:Trig.NVerts for i=1:j-1 if(Neighbors(i,j)) Edges=[Edges,[i;j]]; end end end function Neighborhood = NeighborhoodFromNodes(Nodes,nPts) Neighborhood = zeros(nPts,nPts); for ...
github
fethallah/geodesics4meshes-master
plot_tensor_field.m
.m
geodesics4meshes-master/matlab/toolbox/plot_tensor_field.m
5,736
utf_8
8e241783316bc4c13529031d81db17d4
function h = plot_tensor_field(H, M, options) % plot_tensor_field - display a tensor field % % h = plot_tensor_field(H, M, options); % % options.sub controls sub-sampling % options.color controls color % % Copyright (c) 2006 Gabriel Peyre if nargin<3 options.null = 0; end if not( isstruct(op...
github
fethallah/geodesics4meshes-master
perform_triangle_flipping.m
.m
geodesics4meshes-master/matlab/toolbox/perform_triangle_flipping.m
1,848
utf_8
b6a78203795416882735031895a76703
function face = perform_triangle_flipping(face, flips, options) % perform_triangle_flipping - apply a sequence of flips to a triangulation % % face = perform_triangle_flipping(face, flips, options); % % Flip that are not topologically valid (either on a boundary edge or a % flip that creates a double face) are s...
github
fethallah/geodesics4meshes-master
compute_structure_tensor.m
.m
geodesics4meshes-master/matlab/toolbox/compute_structure_tensor.m
5,058
utf_8
c1be68eb9fee026413f2513666c843ab
function H = compute_structure_tensor(M,sigma1,sigma2, options) % compute_structure_tensor - compute the structure tensor % % T = compute_structure_tensor(M,sigma1,sigma2); % % sigma1 is pre smoothing width (in pixels). % sigma2 is post smoothing width (in pixels). % % Follows the ideas of % U. Kot...
github
fethallah/geodesics4meshes-master
load_image.m
.m
geodesics4meshes-master/matlab/toolbox/load_image.m
20,071
utf_8
2407ce9458db2bca9c208e744785af5a
function M = load_image(type, n, options) % load_image - load benchmark images. % % M = load_image(name, n, options); % % name can be: % Synthetic images: % 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line', % 'line_vertical', 'l...
github
fethallah/geodesics4meshes-master
add_point_edge.m
.m
geodesics4meshes-master/matlab/toolbox/add_point_edge.m
2,483
utf_8
57f7fa084c2be6b8b2a9e659d127f9a6
function [vertex, connectivity, modified] = add_point_edge(vertex, connectivity, edge, coords) % add_point_edge - % % % coords are the barycentric coordinates in the triangle of the new point % sum(coords) = 1 and coords(i) > 0 % % Copyright (c) 2010 Fethallah Benmansour if(sum(coords(:)) ~= 1 || min(coords...
github
fethallah/geodesics4meshes-master
GetBorders.m
.m
geodesics4meshes-master/matlab/toolbox/GetBorders.m
3,798
utf_8
861fdb85584ac5226a5e931ef528cf2f
% if OrderP=true, ensure that the edges are ordered so that the second of % one is the first vertex of the next one. % If ReverseP=true, reverse the order of the vertices in all edges. function [Borders,Edges]=GetBorders(Trig,OrderP,ReverseP) if(nargin<3) ReverseP=false; if(nargin<2) OrderP=true; ...
github
fethallah/geodesics4meshes-master
RtTrig.m
.m
geodesics4meshes-master/matlab/toolbox/RtTrig.m
1,031
utf_8
002fc6a108a1effed72dad09674acdff
% Rotate all vertex coordinates. % - If two or three arguments are provided, the second is assumed to be the % rotations translation matrix and the third a flag that indicates whether % or not it should be inverted. % - If six arguments are provided, they are assumed to be the rotation and % translation values. func...
github
fethallah/geodesics4meshes-master
ProjectVert.m
.m
geodesics4meshes-master/matlab/toolbox/ProjectVert.m
270
utf_8
f44dd258db87f8e2b575622712889804
% Project vertex by multiplying coordinates by projection matrix and % adding one to convert to matlab array coordinates. function [u,v]=ProjectVert(Trig,Proj,VId,RoundP) if(nargin<4) RoundP=false; end Pt=Trig.Coords(VId,:); [u,v]=ProjectPoint(Proj,Pt',RoundP);
github
fethallah/geodesics4meshes-master
perform_edgebreaker.m
.m
geodesics4meshes-master/matlab/toolbox/perform_edgebreaker.m
5,468
utf_8
5b2af363e48e9ea8f65c6f09283620fc
function [face, vertex] = perform_edgebreaker(face, vertex, direction, options) % perform_edgebreaker - wrapper to edgebreaker topology compression % % Compression of topology + geometry: % [stream,vertexC] = perform_edgebreaker(face, vertex, +1, options); % Compression of topology alone: % stream = perform_edgebr...
github
fethallah/geodesics4meshes-master
FillTrig.m
.m
geodesics4meshes-master/matlab/toolbox/FillTrig.m
2,426
utf_8
3676043f3ca8859c965352105862e9d1
function [Raster,ValidP]=FillTrig(Trig,Proj,Raster,FacetsP) if(nargin<4) FacetsP=false; end global Array; Array=Raster; if(FacetsP) % Fill array with individual facet numbers nf=size(Trig.Facets,1); % Compute vertex projections. [Us,Vs]=ProjectTrig(Trig,Proj); % Draw all edges into array. ...
github
fethallah/geodesics4meshes-master
compute_boundary.m
.m
geodesics4meshes-master/matlab/toolbox/compute_boundary.m
2,009
utf_8
69ba55473da4b09ce00a1eb506a7e959
function boundary=compute_boundary(face, options) % compute_boundary - compute the vertices on the boundary of a 3D mesh % % boundary=compute_boundary(face); % % Copyright (c) 2007 Gabriel Peyre options.null = 0; verb = getoptions(options, 'verb', 1); if size(face,1)<size(face,2) face=face'; end...
github
fethallah/geodesics4meshes-master
check_face_vertex.m
.m
geodesics4meshes-master/matlab/toolbox/check_face_vertex.m
669
utf_8
c940a837f5afef7c3a7f7aed3aff9f7a
function [vertex,face] = check_face_vertex(vertex,face, options) % check_face_vertex - check that vertices and faces have the correct size % % [vertex,face] = check_face_vertex(vertex,face); % % Copyright (c) 2007 Gabriel Peyre vertex = check_size(vertex,2,4); face = check_size(face,3,4); %%%%%%%%%%%%%%%%%%%%%%%...
github
fethallah/geodesics4meshes-master
plot_tensor_field_nb.m
.m
geodesics4meshes-master/matlab/toolbox/plot_tensor_field_nb.m
5,107
utf_8
5f6826cefc68c6e07eaf23afe0858e50
function h = plot_tensor_field(H, M, options) % plot_tensor_field - display a tensor field % % h = plot_tensor_field(H, M, options); % % options.sub controls sub-sampling % options.color controls color % % Copyright (c) 2006 Gabriel Peyre if nargin<3 options.null = 0; end if not( isstruct(op...
github
fethallah/geodesics4meshes-master
DispNumberedTrig.m
.m
geodesics4meshes-master/matlab/toolbox/DispNumberedTrig.m
2,401
utf_8
571361fcc14742a9a71fa7538df64813
function DispNumberedTrig(Trig,vertexIndeciesP,faceIndeciesP,varargin) figure if(length(varargin)>0) Colors=varargin{1}; if(length(varargin)>1) ClearP=varargin{2}; else ClearP=true; end else ClearP=true; Colors=['r','g','b','c','y']; end Ncolrs=length(Colors); if(ClearP) ...
github
fethallah/geodesics4meshes-master
DispTrig.m
.m
geodesics4meshes-master/matlab/toolbox/DispTrig.m
1,449
utf_8
dc344b0ab5c3bb8c79ca9436ac5eba57
function DispTrig(Trig,varargin) if(~isempty(varargin)) Colors=varargin{1}; if(length(varargin)>1) ClearP=varargin{2}; else ClearP=true; end else ClearP=true; Colors=['r','g','b','c','y']; end Ncolrs=length(Colors); if(ClearP) clf; daspect([1,1,1]); end hold on; fo...
github
fethallah/geodesics4meshes-master
compute_voronoi_triangulation.m
.m
geodesics4meshes-master/matlab/toolbox/compute_voronoi_triangulation.m
2,806
utf_8
6ed546707daebe1eb6f945f8834ceb61
function faces = compute_voronoi_triangulation(Q, vertex) % compute_voronoi_triangulation - compute a triangulation % % face = compute_voronoi_triangulation(Q); % % Q is a Voronoi partition function, computed using % perform_fast_marching. % face(:,i) is the ith face. % % Works in 2D and in 3D. % % Cop...
github
fethallah/geodesics4meshes-master
plot_graph.m
.m
geodesics4meshes-master/matlab/toolbox/plot_graph.m
2,140
utf_8
337033b66fe405903639bcac59c2b34d
function h = plot_graph(A,xy, options) % plot_graph - display a 2D or 3D graph. % % plot_graph(A,xy, options); % % options.col set the display (e.g. 'k.-') % % Copyright (c) 2006 Gabriel Peyre if size(xy,1)>size(xy,2) xy = xy'; end if nargin<3 options.null = 0; end if not(isstruct(options)) col = op...
github
fethallah/geodesics4meshes-master
add_point_triangle.m
.m
geodesics4meshes-master/matlab/toolbox/add_point_triangle.m
1,642
utf_8
c1f483ddcd9193e3222637ff2428ff7d
function [vertex, connectivity, modified] = add_point_triangle(vertex, connectivity, triangle, coords) % add_point_triangle - % % % coords are the barycentric coordinates in the triangle of the new point % sum(coords) = 1 and coords(i) > 0 % % Copyright (c) 2010 Fethallah Benmansour if(sum(coords(:)) ~= 1 |...
github
fethallah/geodesics4meshes-master
perform_delaunay_flipping.m
.m
geodesics4meshes-master/matlab/toolbox/perform_delaunay_flipping.m
2,420
utf_8
7c5e250e94e9e69d99c556c805b4d2fe
function [face, flips, flipsinv] = perform_delaunay_flipping(vertex,face,options) % perform_delaunay_flipping - compute Dalaunay triangulation via flipping % % [face1, flips, flipsinv] = perform_delaunay_flipping(vertex,face,options); % % Set options.display_flips = 1 for graphical display. % % face is turned in...
github
fethallah/geodesics4meshes-master
check_incircle_edge.m
.m
geodesics4meshes-master/matlab/toolbox/check_incircle_edge.m
1,633
utf_8
dca2fc799d9cf120df9156a15c47b5fa
function ic = check_incircle_edge(vertex, face, edge) % check_incicle_edge - compute "empty circle" property for a set of edges % % ic = check_incicle_edge(vertex,face, edge); % % ic(i)==1 if edge(:,i) is delaunay valid (boundary or empty circles or non convex). % It thus should be flipped if ic(i)==0. % % Cop...
github
fethallah/geodesics4meshes-master
perform_faces_reorientation.m
.m
geodesics4meshes-master/matlab/toolbox/perform_faces_reorientation.m
2,881
utf_8
09474ee38fee171fa18c1db05e3e7a22
function faces = perform_faces_reorientation(vertex,faces, options) % perform_faces_reorientation - reorient the faces with respect to the center of the mesh % % faces = perform_faces_reorientation(vertex,faces, options); % % try to find a consistant reorientation for faces of a mesh. % % if options.method = 'fast...
github
fethallah/geodesics4meshes-master
ProjTrig.m
.m
geodesics4meshes-master/matlab/toolbox/ProjTrig.m
1,440
utf_8
d1a83ee5c03883bb66c50ad7ee2ea7e1
function ProjTrig(Trig,PrjMat,Img,RasterP,Colors,ClearP) if(nargin<6) ClearP=true; if(nargin<5) Colors=['r','g','b','c','y']; if(nargin<4) RasterP=false; if(nargin<3) Img=[]; end end end end Ncolrs=length(Colors); if(isempty(Img)...
github
fethallah/geodesics4meshes-master
compute_butterfly_neighbors.m
.m
geodesics4meshes-master/matlab/toolbox/compute_butterfly_neighbors.m
1,398
utf_8
0a690efe10cc4cbba37565df43f15a2f
function [e,v,g] = compute_butterfly_neighbors(k, nj) % compute_butterfly_neighbors - compute local neighbors of a vertex % % [e,v,g] = compute_butterfly_neighbors(k, nj); % % This is for internal use. % % e are the 2 direct edge neighbors % v are the 2 indirect neighbors % g are the fare neighbors % % You nee...
github
fethallah/geodesics4meshes-master
compute_geodesic_mesh.m
.m
geodesics4meshes-master/matlab/toolbox/compute_geodesic_mesh.m
4,234
utf_8
f3e2ddf4b7d47f9f8d9226288e74c5d7
function [path,vlist,plist] = compute_geodesic_mesh(D, vertex, face, x, options) % compute_geodesic_mesh - extract a discrete geodesic on a mesh % % [path,vlist,plist] = compute_geodesic_mesh(D, vertex, face, x, options); % % D is the set of geodesic distances. % % path is a 3D curve that is the shortest path st...
github
fethallah/geodesics4meshes-master
ProjectPoint.m
.m
geodesics4meshes-master/matlab/toolbox/ProjectPoint.m
284
utf_8
63fb0e35246ef18c79d3030369cbce69
% Project point by multiplying coordinates by projection matrix and % adding one to convert to matlab array coordinates. function [u,v]=ProjectPoint(Proj,Pt,RoundP) UVW=Proj*[Pt;1]; u=UVW(1)/UVW(3)+1; v=UVW(2)/UVW(3)+1; if((nargin>2)&&RoundP) u=round(u); v=round(v); end
github
fethallah/geodesics4meshes-master
load_spherical_function.m
.m
geodesics4meshes-master/matlab/toolbox/load_spherical_function.m
1,810
utf_8
1999ea966df43f6770f67d42cee2a6f7
function f = load_spherical_function(name, pos, options) % load_spherical_function - load a function on the sphere % % f = load_spherical_function(name, pos, options); % % Copyright (c) 2007 Gabriel Peyre if iscell(pos) pos = pos{end}; end if size(pos,1)>size(pos,2) pos = pos'; end x = pos(1,:); x = x(:...
github
fethallah/geodesics4meshes-master
perform_spherial_planar_sampling.m
.m
geodesics4meshes-master/matlab/toolbox/perform_spherial_planar_sampling.m
2,972
utf_8
76d71d45fe348bef0c0f7dd26434dc52
function posw = perform_spherial_planar_sampling(pos_sphere, sampling_type) % perform_spherial_planar_sampling - project sampling location from sphere to a square % % posw = perform_spherial_planar_sampling(pos_sphere, type) % % 'type' can be 'area' or 'gnomonic'. % % This is used to produced spherical geo...
github
fethallah/geodesics4meshes-master
PickTrig.m
.m
geodesics4meshes-master/matlab/toolbox/PickTrig.m
7,401
utf_8
994fc4a3f24f41dbf1bd3befd910d4ed
% Pick a vertex of an edge of a triangulation overlaid on an image. function PickTrig(Trig,Proj,Img,FacetsP,EdgesP) if(nargin<3) Img=[]; end if(nargin<4) FacetsP=false; end if(nargin<5) EdgesP=true; end % Open a new figure. figure; % Compute vertex projections [Us,Vs]=ProjectTrig(Trig,...
github
fethallah/geodesics4meshes-master
pick_points.m
.m
geodesics4meshes-master/matlab/toolbox/pick_points.m
469
utf_8
269962df4eab70bdde6e187b98cfcd32
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % pick_points.m : Points = pick_points(Image, nb_points, msg) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function P = pick_points(n) P = ones(2,n); for nbp = 1:n start_point = ginput(1); ...
github
fethallah/geodesics4meshes-master
ProjectTrig.m
.m
geodesics4meshes-master/matlab/toolbox/ProjectTrig.m
672
utf_8
21f31ca62a367d5b076c18a85dc91f89
% Project vertices by multiplying coordinates by projection matrix and % adding one to convert to matlab array coordinates. function [Us,Vs]=ProjectTrig(Trig,Proj) if((3==size(Proj,1))&&(4==size(Proj,2))) scale=1; XYZs=[Trig.Coords';ones(1,size(Trig.Coords,1))]; UVWs=Proj*XYZs; Us=scale * UVWs(1,:)./U...
github
fethallah/geodesics4meshes-master
pdftops.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/pdftops.m
3,227
utf_8
abd2b05467d3442adb33f4514e637bf0
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for futur...
github
fethallah/geodesics4meshes-master
pdf2eps.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/pdf2eps.m
1,359
utf_8
8b3533d7c584c083b9ea03c725327c76
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.c...
github
fethallah/geodesics4meshes-master
print2array.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/print2array.m
3,482
utf_8
b2bf096c446eaedf2c0a2e18e2830181
%PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % % This function outputs a bitmap image of the given figure, at the desired % resolution...
github
fethallah/geodesics4meshes-master
change_value.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/change_value.m
1,349
utf_8
041103967e008003ce45273c639736b7
%CHANGE_VALUE Change the value assigned to a unique variable in a file % % Examples: % fail = change_value(fullPath, variableName, value) % % Function to change the value assigned to a variable in a text file. The % assignment must exist already, and must be on a line on its own. Only the % first such assignment is ...
github
fethallah/geodesics4meshes-master
eps2pdf.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/eps2pdf.m
3,834
utf_8
af4ba06094f3ddd2c7404bc98240aaaa
%EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop, append, gray, quality) % % This function converts an eps file...
github
fethallah/geodesics4meshes-master
export_fig.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/export_fig.m
24,675
utf_8
ee544022f7894ec6ed2c3892614abd10
%EXPORT_FIG Exports figures suitable for publication % % Examples: % im = export_fig % [im alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ... -native % export_fig ... -m<val> % export_fig ... -r<val> % export_fig ... ...
github
fethallah/geodesics4meshes-master
ghostscript.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/ghostscript.m
3,439
utf_8
78d681e9881f4c7ff232503b1f0044d5
function varargout = ghostscript(cmd) %GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path...
github
fethallah/geodesics4meshes-master
print2eps.m
.m
geodesics4meshes-master/matlab/toolbox/export_fig/print2eps.m
1,846
utf_8
b35c00359f5f3745c0ab843d7ed7e269
%PRINT2EPS Prints figures to eps with improved line styles % % Examples: % print2eps filename % print2eps(filename, fig_handle) % print2eps(filename, fig_handle, options) % % This function saves a figure as an eps file, and improves the line style, % making dashed lines more like those on screen and givi...
github
fethallah/geodesics4meshes-master
compute_tensor_domain.m
.m
geodesics4meshes-master/matlab/projects/meshing-domain/compute_tensor_domain.m
3,032
utf_8
f87653cad061703facafa89a333dfb21
function H = compute_tensor_domain(M,metric_type,options) % compute_tensor_domain - compute a tensor field that follows the normal % % H = compute_tensor_domain(M, metric_type, options); % % M is a binary image, M==1 is the shape. % H is a tensor that is rank-1 following the tangent to the domain, and % smooth...
github
fethallah/geodesics4meshes-master
draw_polygons.m
.m
geodesics4meshes-master/matlab/projects/grouping-perceptual/draw_polygons.m
602
utf_8
6643e5856e92d6350c02dcf230173571
function sk = draw_polygons(n,r,point_list) if not(iscell(point_list)) point_list = {point_list}; end sk = zeros(n); for i=1:length(point_list) pl = point_list{i}; for k=2:length(pl) sk = draw_line(sk,pl(1,k-1),pl(2,k-1),pl(1,k),pl(2,k),r); end end function sk = draw_line(sk,x1,y1,x2,y2,r) ...
github
fethallah/geodesics4meshes-master
compute_hessian_gaussian.m
.m
geodesics4meshes-master/matlab/projects/grouping-perceptual/compute_hessian_gaussian.m
2,445
utf_8
915c370a860b586cc1ab59a0b91e7ccd
function [T] = compute_hessian_gaussian(I, halfwindow, sigma) n = size(I,1); T = ones(n,n,2,2); shw = halfwindow*2+1; kernelGxx = ones(shw,shw); kernelGyy = ones(shw,shw); kernelGxy = ones(shw,shw); sumxx = 0; sumyy = 0; sumxy = 0; for y = -halfwindow:halfwindow for x = ...
github
fethallah/geodesics4meshes-master
pick_points.m
.m
geodesics4meshes-master/matlab/projects/grouping-perceptual/pick_points.m
576
utf_8
9dbce3fc67afeddd0f458cc6700c2a51
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % pick_points.m : Points = pick_points(Image, nb_points) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function P = pick_points(M, n) P = ones(2,n); figure; imageplot(M); axis image; axis off; ...
github
GustavHager/opencv_contrib-master
modelConvert.m
.m
opencv_contrib-master/doc/tutorials/ximgproc/training/scripts/modelConvert.m
2,117
utf_8
dd8b0dc376b1da49ced7529a9e3a7723
function modelConvert(model, outname) %% script for converting Piotr's matlab model into YAML format outfile = fopen(outname, 'w'); fprintf(outfile, '%%YAML:1.0\n\n'); fprintf(outfile, ['options:\n'... ' numberOfTrees: 8\n'... ' numberOfTreesToEvaluate: 4\n'... ...
github
GustavHager/opencv_contrib-master
modelConvert.m
.m
opencv_contrib-master/modules/ximgproc/tutorials/scripts/modelConvert.m
2,117
utf_8
dd8b0dc376b1da49ced7529a9e3a7723
function modelConvert(model, outname) %% script for converting Piotr's matlab model into YAML format outfile = fopen(outname, 'w'); fprintf(outfile, '%%YAML:1.0\n\n'); fprintf(outfile, ['options:\n'... ' numberOfTrees: 8\n'... ' numberOfTreesToEvaluate: 4\n'... ...
github
MISS3D/s2p-master
demo_ASIFT.m
.m
s2p-master/3rdparty/demo_ASIFT_src/demo_ASIFT.m
4,023
utf_8
e272bdcadd3d87dd83d9992b7995dffb
%*-------------------demo_ASIFT MATLAB interface -------------------------*/ % % ************************************************************************* % NOTE: The ASIFT SOFTWARE ./demo_ASIFT IS STANDALONE AND CAN BE EXECUTED % WITHOUT MATLAB. % *************************************************************...
github
dariasor/TreeExtra-master
make_effect_plot.m
.m
TreeExtra-master/OctavePlots/make_effect_plot.m
1,099
utf_8
c1c5fd20ca896bff173f6b6029ccd1c7
% (C) Alexander Sorokin, Daria Sorokina, 2009 % License: New BSD. function make_effect_plot(xvalues, xcounts, values, plot_title) clf axes('position',[0.1 0.2,0.8 0.7]) hold on %lc = [198 198 198]/255; %lw = 3; n = numel(xvalues); hasMV = (xvalues(n) == 0); if(hasMV) h = plot(xvalues(1:n-1), values(1:n-1)); else ...
github
dariasor/TreeExtra-master
make_interaction_plot.m
.m
TreeExtra-master/OctavePlots/make_interaction_plot.m
2,009
utf_8
3d22061887a2ecc128207260ef54055e
% (C) Alexander Sorokin, Daria Sorokina % License: New BSD. function make_interaction_plot(xvalues, xcounts, yvalues, ycounts, values, density, xlabelstr, plot_title) clf hold on lw_scale = 6/numel(yvalues); lw_offset = 3; lc_scale = [198 198 198]/255/numel(yvalues); lc_offset = [0 0 0]; celln = sum(xcounts)*sum(yco...
github
artmunich/MachineLearning-master
submit.m
.m
MachineLearning-master/machine-learning-ex2/submit.m
1,605
utf_8
9b63d386e9bd7bcca66b1a3d2fa37579
function submit() addpath('./lib'); conf.assignmentSlug = 'logistic-regression'; conf.itemName = 'Logistic Regression'; conf.partArrays = { ... { ... '1', ... { 'sigmoid.m' }, ... 'Sigmoid Function', ... }, ... { ... '2', ... { 'costFunction.m' }, ... 'Logistic R...
github
artmunich/MachineLearning-master
submitWithConfiguration.m
.m
MachineLearning-master/machine-learning-ex2/lib/submitWithConfiguration.m
3,734
utf_8
84d9a81848f6d00a7aff4f79bdbb6049
function submitWithConfiguration(conf) addpath('./lib/jsonlab'); parts = parts(conf); fprintf('== Submitting solutions | %s...\n', conf.itemName); tokenFile = 'token.mat'; if exist(tokenFile, 'file') load(tokenFile); [email token] = promptToken(email, token, tokenFile); else [email token] = p...
github
artmunich/MachineLearning-master
savejson.m
.m
MachineLearning-master/machine-learning-ex2/lib/jsonlab/savejson.m
17,462
utf_8
861b534fc35ffe982b53ca3ca83143bf
function json=savejson(rootname,obj,varargin) % % json=savejson(rootname,obj,filename) % or % json=savejson(rootname,obj,opt) % json=savejson(rootname,obj,'param1',value1,'param2',value2,...) % % convert a MATLAB object (cell, struct or array) into a JSON (JavaScript % Object Notation) string % % author: Qianqian Fa...
github
artmunich/MachineLearning-master
loadjson.m
.m
MachineLearning-master/machine-learning-ex2/lib/jsonlab/loadjson.m
18,732
ibm852
ab98cf173af2d50bbe8da4d6db252a20
function data = loadjson(fname,varargin) % % data=loadjson(fname,opt) % or % data=loadjson(fname,'param1',value1,'param2',value2,...) % % parse a JSON (JavaScript Object Notation) file or string % % authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % created on 2011/09/09, including previous works from % % ...
github
artmunich/MachineLearning-master
loadubjson.m
.m
MachineLearning-master/machine-learning-ex2/lib/jsonlab/loadubjson.m
15,574
utf_8
5974e78e71b81b1e0f76123784b951a4
function data = loadubjson(fname,varargin) % % data=loadubjson(fname,opt) % or % data=loadubjson(fname,'param1',value1,'param2',value2,...) % % parse a JSON (JavaScript Object Notation) file or string % % authors:Qianqian Fang (fangq<at> nmr.mgh.harvard.edu) % created on 2013/08/01 % % $Id: loadubjson.m 460 2015-01-...
github
artmunich/MachineLearning-master
saveubjson.m
.m
MachineLearning-master/machine-learning-ex2/lib/jsonlab/saveubjson.m
16,123
utf_8
61d4f51010aedbf97753396f5d2d9ec0
function json=saveubjson(rootname,obj,varargin) % % json=saveubjson(rootname,obj,filename) % or % json=saveubjson(rootname,obj,opt) % json=saveubjson(rootname,obj,'param1',value1,'param2',value2,...) % % convert a MATLAB object (cell, struct or array) into a Universal % Binary JSON (UBJSON) binary string % % author...
github
artmunich/MachineLearning-master
submit.m
.m
MachineLearning-master/machine-learning-ex4/submit.m
1,635
utf_8
ae9c236c78f9b5b09db8fbc2052990fc
function submit() addpath('./lib'); conf.assignmentSlug = 'neural-network-learning'; conf.itemName = 'Neural Networks Learning'; conf.partArrays = { ... { ... '1', ... { 'nnCostFunction.m' }, ... 'Feedforward and Cost Function', ... }, ... { ... '2', ... { 'nnCostFunct...
github
artmunich/MachineLearning-master
submitWithConfiguration.m
.m
MachineLearning-master/machine-learning-ex4/lib/submitWithConfiguration.m
3,734
utf_8
84d9a81848f6d00a7aff4f79bdbb6049
function submitWithConfiguration(conf) addpath('./lib/jsonlab'); parts = parts(conf); fprintf('== Submitting solutions | %s...\n', conf.itemName); tokenFile = 'token.mat'; if exist(tokenFile, 'file') load(tokenFile); [email token] = promptToken(email, token, tokenFile); else [email token] = p...