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
McStasMcXtrace/iFit-master
read_poscar.m
.m
iFit-master/Libraries/Loaders/read_poscar.m
4,807
utf_8
7f06e5dcae0b0f9fd5f0f693a936bd98
% READ_POSCAR read a VASP POSCAR file % % Usage: s = read_poscar(filename) % % References: % vasplab by Max Radin, 2012 % http://cms.mpi.univie.ac.at/vasp/guide/node59.html % http://www.mathworks.com/matlabcentral/fileexchange/36836-vasplab % % Input: filename: VASP POSCAR file (string) % o...
github
McStasMcXtrace/iFit-master
read_stl.m
.m
iFit-master/Libraries/Loaders/read_stl.m
15,433
utf_8
506f4d058ba758f7f2531c8da964063f
function data=read_stl(file, option) % read_stl read ascii and binary STL files % data=read_stl(file) % % Grab plenty of STL files at: https://www.thingiverse.com/ % % References: % [f,v,c]=rndread from cad2matdemo Don Riley Jun 2003 : read ASCII STL with color % <http://www.mathworks.com/matlabcentral/fileexchange...
github
McStasMcXtrace/iFit-master
read_cbf.m
.m
iFit-master/Libraries/Loaders/read_cbf.m
20,127
utf_8
bdb878b60a7eaaac65ff415eaa293a52
% read_cbf Read CBF/imgCIF x-ray file format % data = read_cbf(filename) % % Description: % Macro for reading Crystallographic Binary File (CBF) files written by the % Pilatus detector control program camserver. % % References: % May 9th 2008, Oliver Bunk: 1st version % <http://www.psi.ch/sls/csaxs/software> % examp...
github
McStasMcXtrace/iFit-master
read_sdf.m
.m
iFit-master/Libraries/Loaders/read_sdf.m
163,766
UNKNOWN
b3bec2b97d4fd8f62b95d4d7236f0b53
% data = read_sdf(filename) Read a HP/Agilent/Keysight Standard Data Format (SDF) % % Description: % Macro for reading HP/Agilent/Keysight Standard Data Format (SDF) % % References: % 27 May 2018 Justin Dinale % <https://fr.mathworks.com/matlabcentral/fileexchange/67513-sdf-importer> % % Input: filename: SDF file ...
github
McStasMcXtrace/iFit-master
read_pdb.m
.m
iFit-master/Libraries/Loaders/read_pdb.m
16,141
utf_8
5aef51b7ca35728f760182dc12c7a279
% result = read_pdb(fname) read a PDB file % % Import a PDB file, available at e.g. https://www.rcsb.org/ % % Compute SAXS characteristics of molecule described in file fname. % Input - fname --> valid PDB file. % Output result --> structure with fields describing SAXS profile. % % resu...
github
McStasMcXtrace/iFit-master
read_opus.m
.m
iFit-master/Libraries/Loaders/read_opus.m
10,036
UNKNOWN
20d44df04fa0ea21d6659a9956a010c6
function data = read_opus(filename) % reads an Opus Brucker file entirely. % data = read_opus(filename) % % all sections are read and we return as many cells as needed % % References: % https://sites.google.com/site/silakovalexey/kazan-viewer/ % A. Silakov Kazan viewer 2009 % % Input: filename: Brucker...
github
McStasMcXtrace/iFit-master
read_vol.m
.m
iFit-master/Libraries/Loaders/read_vol.m
2,519
utf_8
e11f75e0be5b6370c49b5af7cc1096aa
% data = read_vol(filename) read a RAW 3D volume (tomography/PyHST2) % % Read a RAW volume (float32) generated by PyHST2: % <http://ftp.esrf.fr/scisoft/PYHST2/> % <https://gitlab.esrf.fr/mirone/pyhst2> % % A '.par' file will be searched at the same location, to extract the volume shape. % This '.par' file sh...
github
McStasMcXtrace/iFit-master
read_hdf5.m
.m
iFit-master/Libraries/Loaders/read_hdf5.m
7,783
utf_8
1cf43ff131eae9bd1ccc20d6f4073a7d
function data = read_hdf5(filename) % READ_HDF5 Returns the contents of an HDF5 file as a structure % The READ_HDF5 function reads an HDF5 file and returns the contents of % that file as the fields of a structure. Groups are treated as elements % of their parent structure. If the file cannot be opened a -1 ...
github
McStasMcXtrace/iFit-master
read_mar.m
.m
iFit-master/Libraries/Loaders/read_mar.m
5,150
utf_8
d848740acb3adbb475ca575a9a98cb23
% data = read_mar(filename) Read a MAR CCD image % % Description: % Macro for reading TIFF files written by a MAR CCD % % References: % July 17th 2008, Oliver Bunk: 1st version % <http://www.psi.ch/sls/csaxs/software> % % Input: filename: Mar CCD file (string) % output: structure % Example: y=read_mar(fullfile(ifi...
github
McStasMcXtrace/iFit-master
read_gcode.m
.m
iFit-master/Libraries/Loaders/read_gcode.m
4,169
utf_8
f2294364648d0788aea5ae03b348abc7
function data = read_gcode(file, k) % read_gcode get cpoordinates of points in a GCode/CNC file % % The returned output contains the XYZ coordinates, as well as an index per % closed shape, and the centroid of each shape. % % Fornat definition <https://en.wikipedia.org/wiki/G-code> % % Example: s=read...
github
McStasMcXtrace/iFit-master
class2str.m
.m
iFit-master/Libraries/Loaders/class2str.m
11,712
utf_8
7ca30b851948912880ee34fde385ac2e
function str=class2str(this, data, options) % CLASS2STR This function creates a string containing Matlab code describing a variable. % CLASS2STR(this,data) Create an evaluable string [ 'this = data;' ] % % CLASS2STR(data) is the same as above, and uses the variable name for % the label of the output. % % CLASS2...
github
McStasMcXtrace/iFit-master
ImportAgilent.m
.m
iFit-master/Libraries/Loaders/private/ImportAgilent.m
23,061
utf_8
295991eed8e90ed9ccce660879dc633c
% ------------------------------------------------------------------------ % Method : ImportAgilent % Description : Import data stored in Agilent (.D, .MS, .CH) files % ------------------------------------------------------------------------ % % ---------------------------------------------------------------------...
github
McStasMcXtrace/iFit-master
tsread.m
.m
iFit-master/Libraries/Loaders/private/tsread.m
30,708
utf_8
79456c4117484be687bd9c1bb67a6cc0
function allData = tsread(filename) % TSREAD reads in parameters from suitable Bruker NMR files % output = tsread(filename) reads in the contents of the JCAMP-format % Bruker TopSpin parameter files e.g. acqu, proc etc., and then handles the % custom fields so they give sensible values. Returns a structure. % <h...
github
McStasMcXtrace/iFit-master
getAllFiles.m
.m
iFit-master/Libraries/Loaders/private/getAllFiles.m
4,469
utf_8
8f7104e69095ecf2cb54c098b0a4e105
function fileList = getAllFiles(dirName) % getAllFiles: get all files below 'dirName' dirData = dir(dirName); % Get the data for the current directory dirIndex = [dirData.isdir]; % Find the index for directories fileList = {dirData(~dirIndex).name}'; %'# Get a list of the files if ~isempty(fileList) ...
github
McStasMcXtrace/iFit-master
iLoad_findfield.m
.m
iFit-master/Libraries/Loaders/private/iLoad_findfield.m
3,246
utf_8
f7a9f39b2495594478cafcac5dcc7542
function match = findfield(s, field) % match=findfield(s, field, option) : look for numerical fields in a structure % % input: s: structure % field: field name to search, or '' (char). % option: 'exact' 'case' or '' (char) % output: match: names of structure fields (cellstr) % ex: findfield(s) or f...
github
McStasMcXtrace/iFit-master
readNPYheader.m
.m
iFit-master/Libraries/Loaders/private/readNPYheader.m
2,202
UNKNOWN
4ad16266b95a3e5d3192331b55aaec1f
function [arrayShape, dataType, fortranOrder, littleEndian, totalHeaderLength, npyVersion] = readNPYheader(filename) % function [arrayShape, dataType, fortranOrder, littleEndian, ... % totalHeaderLength, npyVersion] = readNPYheader(filename) % % parse the header of a .npy file and return all the info contained ...
github
McStasMcXtrace/iFit-master
iLoad_loader_auto.m
.m
iFit-master/Libraries/Loaders/private/iLoad_loader_auto.m
4,898
utf_8
4be7359a5199685ca161683786c885ea
function [loaders, isbinary] = iLoad_loader_auto(file, config) % function to determine which parser to use to analyze content formats = config.loaders; % get extension [~, ~, ext] = fileparts(file); if ~isempty(ext) && ext(1)=='.', ext(1)=[]; end % read start of file [fid,message] = fopen(file, 'r...
github
McStasMcXtrace/iFit-master
ImportThermo.m
.m
iFit-master/Libraries/Loaders/private/ImportThermo.m
19,587
utf_8
717d5433ad1e7f6b7a5af6c4bfc67ca7
% ------------------------------------------------------------------------ % Method : ImportThermo % Description : Import data stored in Thermo (.RAW) files % ------------------------------------------------------------------------ % % ------------------------------------------------------------------------ % Synt...
github
McStasMcXtrace/iFit-master
iLoad_config_load.m
.m
iFit-master/Libraries/Loaders/private/iLoad_config_load.m
5,976
utf_8
88a385ed3367875e814423e90a7f49fc
function config = iLoad_config_load % iLoad_config_load: load the configuration and format customization persistent cached_config if ~isempty(cached_config) config = cached_config; return end loaders = {}; config = []; % read user list of loaders which is a cell of format description...
github
McStasMcXtrace/iFit-master
fminplot.m
.m
iFit-master/Libraries/Optimizers/fminplot.m
11,922
utf_8
a59c16a6e11256ce22e1873dfcfabdaa
function stop = fminplot(pars, optimValues, state) % stop=fminplot(pars, optimValues, state) default plotting function showing the % criteria evolution as well as main parameters and status. % A STOP button allows premature abortion of the optimization. % When used after the optimization, fminplot can plot the crite...
github
McStasMcXtrace/iFit-master
fminstop.m
.m
iFit-master/Libraries/Optimizers/fminstop.m
2,404
utf_8
4bd8ece1fa3e066b64af78bf6d91c9c2
function val = fminstop(x, optimValues, state) % fminstop: an OutputFcn / PlotFcns function which displays a 'STOP' button % % this later can be pressed during a fit to abort the current fit procedure. % % Other defined function to be used as OutputFcn and PlotFcns: % @fminplot shows criteria and parameter ...
github
McStasMcXtrace/iFit-master
fmindemo.m
.m
iFit-master/Libraries/Optimizers/fmindemo.m
23,280
utf_8
25defeeb4f05665088a15247f33c609f
function abstract=fmindemo(dim, option, repeat_num) % FMINDEMO optimization cross-comparison % % A systematic test of all optimization methods is performed using a set of test % problems. Starting configurations are chosen randomly. % The option flag may contain the following keywords: % 'verbose' displays individu...
github
McStasMcXtrace/iFit-master
ukfopt.m
.m
iFit-master/Libraries/Optimizers/private/ukfopt.m
8,832
utf_8
3144babfa55fc6bd95cac53aeb0385fd
function [x,e, itc]=ukfopt(h,x,tol,P,Q,R,maxit) %UKFOPT Unconstrained optimization using the unscented Kalman filter % % [x,e]=ukfopt(f,x,tol,P,Q,R) minimizes e=norm(f(x)) until e<tol. P, Q % and R are tuning parmeters relating to the Kalman filter % performance. P and Q should be n x n, wher...
github
McStasMcXtrace/iFit-master
powell.m
.m
iFit-master/Libraries/Optimizers/private/powell.m
8,936
utf_8
8070e79a7a4eb8521c122ea1172c7b45
function [pars,fval,istop,output]=powell(S,x0,options) % Unconstrained optimization using Powell. % % [xo,Ot,nS]=powell(S,x0,ip,method,Lb,Ub,problem,tol,mxit) % % S: objective function % x0: initial point % ip: (0): no plot (default), (>0) plot figure ip with pause, (<0) plot figure ip % method: (0)...
github
McStasMcXtrace/iFit-master
PSO.m
.m
iFit-master/Libraries/Optimizers/private/PSO.m
12,581
utf_8
704aaab1f25473f412efc28a6b3f5076
function [X,FVAL,EXITFLAG,OUTPUT] = PSO(FUN,X0,LB,UB,OPTIONS,varargin) %PSO finds a minimum of a function of several variables using the particle swarm % optimization (PSO) algorithm originally introduced in 1995 by Kennedy and % Eberhart. This algorithm was extended by Shi and Eberhart in 1998 through the % introduc...
github
McStasMcXtrace/iFit-master
buscarnd.m
.m
iFit-master/Libraries/Optimizers/private/buscarnd.m
7,827
utf_8
37ca0bda8b14d45489f4b08e20be896e
function [pars,fval,istop]=buscarnd(S,x0,options) % Unconstrained global optimization using adaptive random search. % % [xo,Ot,nS]=buscarnd(S,x0,options.Display,nOt,samples,Lb,Ub,problem,options.TolX,options.MaxIter,R,red,mem) % % Copyright (c) 2001 by LASIM-DEQUI-UFRGS % Date: $Date$ % Argimiro R. Secchi (...
github
McStasMcXtrace/iFit-master
hooke.m
.m
iFit-master/Libraries/Optimizers/private/hooke.m
4,523
utf_8
275a827316ece4eec88dac9cae5ea128
function [x, histout] = hooke(x0, f, budget, scales, tol, v) % % Nelder-Mead optimizer, No tie-breaking rule other than MATLAB's sort % % C. T. Kelley, July 10, 1998 % % % This code comes with no guarantee or warranty of any kind. % % function [x, histout] = hooke(x0, f, budget, scales, tol, v) % % inputs: % % x0...
github
McStasMcXtrace/iFit-master
LMFsolve.m
.m
iFit-master/Libraries/Optimizers/private/LMFsolve.m
11,381
utf_8
8ba05161b6be6ef1516ef69aff11ca1d
function [xf, S, nfJ,exitflag] = LMFsolve(varargin) % Solve a Set of Overdetermined Nonlinear Equations in Least-Squares Sense. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % A solution is obtained by a Fletcher version of the Levenberg-Maquardt % algoritm for minimization of a sum of squares of equation re...
github
McStasMcXtrace/iFit-master
imfil.m
.m
iFit-master/Libraries/Optimizers/private/imfil.m
9,126
utf_8
810b8d606b6ac8e80af8160d469ceff5
function [pars,fval,itc,output] = imfil1(x0,f,options) % % % C. T. Kelley, January 9, 1998 % % This code comes with no guarantee or warranty of any kind. % % function [x,fcount,histout] = imfil(x0,f,budget,scales,parms) % % Unconstrained implicit filtering code % % IMPLICIT FILTERING with SR1 and BFGS quasi-Newton met...
github
McStasMcXtrace/iFit-master
gwmcmc.m
.m
iFit-master/Libraries/Optimizers/private/gwmcmc.m
10,955
UNKNOWN
730daaf67cd26fb9933d2b73bbbe7cf2
function [models,logP]=gwmcmc(minit,logPfuns,mccount,varargin) %% Cascaded affine invariant ensemble MCMC sampler. "The MCMC hammer" % % GWMCMC is an implementation of the Goodman and Weare 2010 Affine % invariant ensemble Markov Chain Monte Carlo (MCMC) sampler. MCMC sampling % enables bayesian inference. The problem ...
github
McStasMcXtrace/iFit-master
ntrust.m
.m
iFit-master/Libraries/Optimizers/private/ntrust.m
8,809
utf_8
bebbe5a6761836adea3919f766f36dcb
function [x,histout,costdata] = ntrust(x0,f,tol,maxit,resolution) % % % C. T. Kelley, Dec 15, 1997 % % This code comes with no guarantee or warranty of any kind. % % function [x,histout,costdata] = ntrust(x0,f,tol,maxit,resolution) % % Dogleg trust region, Newton model, dense algorithm % % Input: x0 = initial iterate ...
github
McStasMcXtrace/iFit-master
SCE.m
.m
iFit-master/Libraries/Optimizers/private/SCE.m
14,021
utf_8
8b5c8c9695800df54df00ab34dc9bbf8
function [X,FVAL,EXITFLAG,OUTPUT] = SCE(FUN,X0,LB,UB,OPTIONS,varargin) %SCE finds a minimum of a function of several variables using the shuffled % complex evolution (SCE) algorithm originally introduced in 1992 by Duan et al. % % SCE attempts to solve problems of the form: % min F(X) subject to: LB <= X <= UB...
github
McStasMcXtrace/iFit-master
cmaes.m
.m
iFit-master/Libraries/Optimizers/private/cmaes.m
117,434
utf_8
f837ff6656fcb22fc41bbd195714429b
function [xmin, ... % minimum search point of last iteration fmin, ... % function value of xmin countiter, ... % number of function evaluations done stopflag, ... % stop criterion reached out, ... % struct with various histories and solutions bestever ... % struct containing overall b...
github
McStasMcXtrace/iFit-master
bfgswopt.m
.m
iFit-master/Libraries/Optimizers/private/bfgswopt.m
9,620
utf_8
0a4959ec31d3437f057ef7f489233720
function [x,histout,costdata,itc] = bfgswopt(x0,f,tol,maxit,hess0, hdiff) % % C. T. Kelley, July 17, 1997 % % This code comes with no guarantee or warranty of any kind. % % function [x,histout] = bfgswopt(x0,f,tol,maxit,hess0) % % steepest descent/bfgs with polynomial line search % Steve Wright storage of H^-1 % % if t...
github
McStasMcXtrace/iFit-master
cgtrust.m
.m
iFit-master/Libraries/Optimizers/private/cgtrust.m
8,069
utf_8
a1e7d3ee48738f1992ed9d05c36e107a
function [xc,histout,costdata] = cgtrust(x0,f,parms,resolution) % % % C. T. Kelley, Jan 13, 1998 % % This code comes with no guarantee or warranty of any kind. % % function [x,histout] = cgtrust(x0,f,parms,resolution) % % Steihaug Newton-CG-Trust region algorithm % % Input: x0 = initial iterate % f = objective ...
github
McStasMcXtrace/iFit-master
SIMPSA.m
.m
iFit-master/Libraries/Optimizers/private/SIMPSA.m
17,181
utf_8
4f719b6b11d556013608e500b4cfd920
function [X,FVAL,EXITFLAG,OUTPUT] = SIMPSA(FUN,X0,LB,UB,OPTIONS,varargin) %SIMPSA finds a minimum of a function of several variables using an algorithm % that is based on the combination of the non-linear smplex and the simulated % annealing algorithm (the SIMPSA algorithm, Cardoso et al., 1996). % In this paper, th...
github
McStasMcXtrace/iFit-master
ralg.m
.m
iFit-master/Libraries/Optimizers/private/ralg.m
29,749
utf_8
1532022bcd92d9203c9ed201ba38cb10
function [x,f,options,k,message]=ralg(x,fun,grad,options,func,gradc,OutputFcn, MaxFunEvals, FunValCheck) % Usage: % [x,f,options]=solvopt(x,fun,grad,options,func,gradc) % The function SOLVOPT performs a modified version of Shor's r-algorithm in % order to find a local minimum resp. maximum of a nonlinear function % def...
github
McStasMcXtrace/iFit-master
ifittest.m
.m
iFit-master/Tests/ifittest.m
5,256
utf_8
9fb580aa70543cd5eb3aa896a83ace0a
function errors=ifittest(varargin) % errors=ifittest(test) : performs a self-test procedure of the iFit package % % The test procedure includes: % * unit tests of Objects and Libraries % * system tests of Applications and Scripts % * doc tests from the Documentation/tutorials % % A report of all test is displaye...
github
mathwuyue/d2dsimulator-master
cal_throughput_array.m
.m
d2dsimulator-master/cal_throughput_array.m
2,504
utf_8
c6747bb47597cd0f2c874754a0e59624
%% n is the whole cell's user number. function [throughput_array, rb_throughput_array] = cal_throughput_array(SINR_array, n) % constants N_SC = 600; N_RB = 50; %% calculate each subcarrier's data rate. Using the Table in Book of Assumption. throughput_array = zeros(1, N_SC*n); % db SINR_array db_SINR_arra...
github
mathwuyue/d2dsimulator-master
cal_throughput_array.m
.m
d2dsimulator-master/simple/cal_throughput_array.m
2,549
utf_8
263af81f364a18894c8c35cc803a5a38
%% n is the whole cell's user number. function [throughput_array, rb_throughput_array] = cal_throughput_array(SINR_array, threshold) % constants N_RB = 50; %% calculate each subcarrier's data rate. Using the Table in Book of Assumption. throughput_array = zeros(size(SINR_array)); % db SINR_array db_SINR_arra...
github
contradict/ethzasl_msf-master
matfig2pgf_options.m
.m
ethzasl_msf-master/msf_eval/Matlab/matfig2pgf_options.m
10,639
utf_8
225a0b2d7d0cfbbe9932df3697d7cdf4
function varargout = matfig2pgf_options(cmd, varargin) % MATFIG2PGF_OPTIONS Manage Matfig2PGF options. Used by Matfig2PGF. % % matfig2pgf_options(<cmd>) % matfig2pgf_options(<cmd>, <options_struct>) % matfig2pgf_options(<cmd>, <option>, <value>, ...) % % Example: % matfig2pgf_options('set_global', ...
github
contradict/ethzasl_msf-master
matfig2pgf.m
.m
ethzasl_msf-master/msf_eval/Matlab/matfig2pgf.m
81,036
utf_8
0d9c4792492ed15466d4a3ecbb06c481
function matfig2pgf( varargin ) %MATFIG2PGF Convert figures to PGF for inclusion in LaTeX documents. % % Matfig2PGF converts a figure to the Portable Graphics Format (PGF). % The PGF file can be included in a LaTeX document. % % matfig2pgf(filename) % matfig2pgf('option1', option_value1, 'option2', opti...
github
contradict/ethzasl_msf-master
matfig2pgf_menu.m
.m
ethzasl_msf-master/msf_eval/Matlab/matfig2pgf_menu.m
3,216
utf_8
95b5ed22ee627ecafa95716d5593cb34
function matfig2pgf_menu( varargin ) %Turns the Matfig2PGF menu in the figure windows on and off. % % Usage: % matfig2pgf_menu <on/off> % % Example: % matfig2pgf_menu % matfig2pgf_menu on % Turns the Matfig2PGF menu on. % % Example: % matfig2pgf_menu off % Turns the Matfig2PGF m...
github
pgcool/TMBP-master
topicshow.m
.m
TMBP-master/toolbox/topicshow.m
232
utf_8
5f54f0e08a8c4d98f97c687fbf4bc9c1
% show top words in each topic function [] = topicshow(phi, voc, N) [K, W] = size(phi); for k = 1:K [a, b] = sort(phi(k,:), 'descend'); for i = 1:N fprintf(1, '%s ', voc{b(i)}); end; fprintf(1, '\n'); end
github
pgcool/TMBP-master
perplexity.m
.m
TMBP-master/toolbox/perplexity.m
1,346
utf_8
1b5ecfcd980530610c4ddb480a1efb6b
function out = perplexity(WD, phi, theta, ALPHA, BETA) % WD is WxD sparse matrix % phi is KxW matrix topic*word % theta is KxD matrix topic*document % ALPHA and BETA are hyperparameters phi = normalise(phi + BETA, 2); theta = normalise(theta + ALPHA, 1); [wi, di, xi] = find(WD); %wi row wo...
github
pgcool/TMBP-master
LDAssiBPtrain.m
.m
TMBP-master/toolbox/LDAssiBPtrain.m
2,272
utf_8
563e92f15be2b7eba9413a2389f15f92
function [phi, theta] = LDAssiBPtrain(WD, K, T, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % K is the number of topixi % T is the number of iterations % phi is a KxW matrix % theta is a KxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iterations if (~issparse(WD) || (K <=...
github
pgcool/TMBP-master
LDAVBtrain.m
.m
TMBP-master/toolbox/LDAVBtrain.m
2,147
utf_8
87cdd2928a8168b444202dc86af26222
function [phi, theta] = LDAVBtrain(WD, K, T, E, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % K is the number of topixi % T is the number of iterations % E is the number of inner EM loops. % phi is a KxW matrix % theta is a KxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of i...
github
pgcool/TMBP-master
LaLDAssiBPtrain.m
.m
TMBP-master/toolbox/LaLDAssiBPtrain.m
2,126
utf_8
1e969b2787ef0295df1e1c8c58709140
function [phi, theta] = LaLDAssiBPtrain(WD, AD, T, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % AD is a AxD sparse matrix (label) % T is the number of iterations % phi is a AxW matrix % theta is a AxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iterations if (~issparse(W...
github
pgcool/TMBP-master
LDAssiBPpredict.m
.m
TMBP-master/toolbox/LDAssiBPpredict.m
1,804
utf_8
1ec9cfe2ffe6009da41f07a7ab707be3
function theta = LDAssiBPpredict(WD, phi, T, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % K is the number of topixi % T is the number of iterations % phi is a KxW matrix % theta is a KxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iterations if (~issparse(WD) || (T <= 0)...
github
pgcool/TMBP-master
LDAVBpredict.m
.m
TMBP-master/toolbox/LDAVBpredict.m
1,901
utf_8
96943239d47efcf9bc24010e53868f38
function theta = LDAVBpredict(WD, phi, T, E, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % K is the number of topixi % T is the number of iterations % E is the number of inner EM loops. % phi is a KxW matrix % theta is a KxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iter...
github
pgcool/TMBP-master
LaLDAssiBPtrain.m
.m
TMBP-master/source/lalda/bp/LaLDAssiBPtrain.m
2,126
utf_8
1e969b2787ef0295df1e1c8c58709140
function [phi, theta] = LaLDAssiBPtrain(WD, AD, T, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % AD is a AxD sparse matrix (label) % T is the number of iterations % phi is a AxW matrix % theta is a AxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iterations if (~issparse(W...
github
pgcool/TMBP-master
LDAssiBPtrain.m
.m
TMBP-master/source/lda/bp/simplified/LDAssiBPtrain.m
2,272
utf_8
563e92f15be2b7eba9413a2389f15f92
function [phi, theta] = LDAssiBPtrain(WD, K, T, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % K is the number of topixi % T is the number of iterations % phi is a KxW matrix % theta is a KxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iterations if (~issparse(WD) || (K <=...
github
pgcool/TMBP-master
LDAssiBPpredict.m
.m
TMBP-master/source/lda/bp/simplified/LDAssiBPpredict.m
1,804
utf_8
1ec9cfe2ffe6009da41f07a7ab707be3
function theta = LDAssiBPpredict(WD, phi, T, ALPHA, BETA, OUTPUT) % WD is a WxD sparse matrix (data) % K is the number of topixi % T is the number of iterations % phi is a KxW matrix % theta is a KxD matrix % ALPHA and BETA are hyperparameters % OUTPUT == 1 showi the number of iterations if (~issparse(WD) || (T <= 0)...
github
pgcool/TMBP-master
a4_main.m
.m
TMBP-master/dl/a4_main.m
4,628
utf_8
af3c93bcc7e4fdabbf7fe3953c8d3cb8
% This file was published on Wed Nov 14 20:48:30 2012, UTC. function a4_main(n_hid, lr_rbm, lr_classification, n_iterations) % first, train the rbm global report_calls_to_sample_bernoulli report_calls_to_sample_bernoulli = false; global data_sets global data1 global train global test if pro...
github
xpol/webrtc-master
apmtest.m
.m
webrtc-master/webrtc/modules/audio_processing/test/apmtest.m
9,470
utf_8
ad72111888b4bb4b7c4605d0bf79d572
function apmtest(task, testname, filepath, casenumber, legacy) %APMTEST is a tool to process APM file sets and easily display the output. % APMTEST(TASK, TESTNAME, CASENUMBER) performs one of several TASKs: % 'test' Processes the files to produce test output. % 'list' Prints a list of cases in the test set,...
github
xpol/webrtc-master
plot_neteq_delay.m
.m
webrtc-master/webrtc/modules/audio_coding/neteq/test/delay_tool/plot_neteq_delay.m
5,563
utf_8
8b6a66813477863da513b1e6971dbc97
function [delay_struct, delayvalues] = plot_neteq_delay(delayfile, varargin) % InfoStruct = plot_neteq_delay(delayfile) % InfoStruct = plot_neteq_delay(delayfile, 'skipdelay', skip_seconds) % % Henrik Lundin, 2006-11-17 % Henrik Lundin, 2011-05-17 % try s = parse_delay_file(delayfile); catch error(lasterr); e...
github
nzhao/qlib-master
InteractionString.m
.m
qlib-master/+model/+phy/+SpinInteraction/+AdditionalSpinInteraction/InteractionString.m
2,125
utf_8
3bd099519d987ff0ba29f46bd3847dd9
classdef InteractionString < model.phy.SpinInteraction.AdditionalSpinInteraction.GeneralSpinInteraction %STRINGTOINTERACTION Summary of this class goes here % Detailed explanation goes here properties end methods function obj=InteractionString(spin_collection, str) if...
github
nzhao/qlib-master
transientSteadyHighpressure.m
.m
qlib-master/+model/+phy/+PhysicalObject/+Atom/@AlkaliAtom/transientSteadyHighpressure.m
1,458
utf_8
e771a527da3ed755b39c191695896544
function transientSteadyHighpressure(obj,I,magB,Gmp,kappa,Kj1,Kj2,Kj3) gg=obj.dimG; gI=2*I+1; ele=obj.gSpin; sSj(:,:,1)=ele.sx; sSj(:,:,2)=ele.sy; sSj(:,:,3)=ele.sz; [Ug,~]=eig(obj.gsHamiltonian(magB)); for k=1:3 gSj=zeros(gg,gg); Sj=zeros(gg,gg); gSj(:,:,k)=kron(eye(gI),sSj(:,...
github
nzhao/qlib-master
GetStateInfo.m
.m
qlib-master/+model/+phy/+Solution/@SpinChainSolution/GetStateInfo.m
2,967
utf_8
59ed2eca31f9bdf1a14ff41e4b479f51
function [spin_num_list, probability_mat ] = GetStateInfo(obj, spin_collection,rho_vecs) %GETSTATEINFO Summary of this function goes here % Detailed explanation goes here nspin=spin_collection.getLength; ts_superoperator= model.phy.QuantumOperator.SpinOperator.TransformSuperOperator(spin_collection); ts_...
github
nzhao/qlib-master
threej.m
.m
qlib-master/HapperFunctions/threej.m
111
utf_8
e18154257a0533a3887ded5f8657a5d1
function x=threej(j1,m1,j2,m2,j3,m3) x=0; x=x+(-1)^(j3+m3+2*j1)*cg(j1,-m1,j2,-m2,j3,m3)/sqrt(2*j3+1);
github
jergutierrez/stoqs-master
stoqs_loadjson.m
.m
stoqs-master/contrib/stoqstoolbox/stoqs_loadjson.m
16,106
ibm852
3f90d22694e05a210d250845f2eedc5c
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) % date: 2011/09/09 % Nedialko Krouchev: http:...
github
jergutierrez/stoqs-master
stoqs_showcampaign.m
.m
stoqs-master/contrib/stoqstoolbox/stoqs_showcampaign.m
979
utf_8
ef6615afb7aa7fb4efd5c0e3d07ad075
function stoqs_showcampaign(u,camp) %Show on the screen all the main information about a campaign in a STOQS %database % %Usage: % % stoqs_showcampaign('http://odss.mbari.org/canon/','stoqs_may2012'); %Input : % % u = Url direction of the STOQS data server. Ex: http://odss.mbari.org/canon % camp = name of...
github
jergutierrez/stoqs-master
stoqs_qcampaigns.m
.m
stoqs-master/contrib/stoqstoolbox/stoqs_qcampaigns.m
1,027
utf_8
c8428f36c17ad610547d37b17b17b661
function infcs=stoqs_qcampaigns(u,show) %Get the name of all the campaigns available in a STOQS server % %Usage: % % inf=stoqs_qcampaigns('http://odss.mbari.org/canon/',1); %Input : % % u = Url direction of the STOQS data server. Ex: http://odss.mbari.org/canon/ % show = Show the info on the screen or not....
github
jergutierrez/stoqs-master
load_mb_1km.m
.m
stoqs-master/contrib/stoqstoolbox/demo/model_vs_stoqs/load_mb_1km.m
1,166
utf_8
24f12604915ebbf3b8fb1a7b13a39780
function [query]=load_mb_1km(url,de) %Get the information of the data set selected(url). Information:Date, %depth, latitude,longitude, and parameter value % %Usage: % % [date]=load_mb_1km('http://ourocean.jpl.nasa.gov:8080/thredds/dodsC/MBNowcast/mb_das_2012052515.nc',5) % % %Input : % % url = Url direct...
github
duijnhouwer/mountainpro-master
prepro_phaseCorr.m
.m
mountainpro-master/Preprocessing_Toolbox/prepro_phaseCorr.m
6,373
utf_8
710a38ce712f839844cb699ebc5dc67e
function varargout = prepro_phaseCorr(varargin) % PREPRO_PHASECORR MATLAB code for prepro_phaseCorr.fig % PREPRO_PHASECORR, by itself, creates a new PREPRO_PHASECORR or raises the existing % singleton*. % % H = PREPRO_PHASECORR returns the handle to a new PREPRO_PHASECORR or the handle to % the exis...
github
duijnhouwer/mountainpro-master
runDetectCells.m
.m
mountainpro-master/Preprocessing_Toolbox/runDetectCells.m
44,823
utf_8
c778972c1d216bb404f0a884aa573a27
%% starting function function varargout = runDetectCells(varargin) % runDetectCells Detect cells with GUI % % Version 2.1 [2014-05-16] % 2013-03-14; Created by Jorrit Montijn % 2013-10-21; updated cross-recording alignment; incorporated % custom-built recursive locally affine registration algorithm to % automati...
github
duijnhouwer/mountainpro-master
DC_redraw.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/DC_redraw.m
6,766
utf_8
e0ff66615fa3fa30a22016cd40ba1dc7
function DC_redraw(varargin) %DC_redraw Sets and redraws windows % DC_redraw([redrawImage=true]) % check if only cells have to be redrawn redrawImage = true; if nargin > 0 redrawImage = varargin{1}; end %get structures global sRec; global sDC; global sFig; %check if data has been loa...
github
duijnhouwer/mountainpro-master
DC_DeleteFcn.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/DC_DeleteFcn.m
149
utf_8
ba8c8baef2762e3633c41ee2cdda813a
%% closing function function DC_DeleteFcn %clear globals global sDC; global sRec; global sFig; sDC = []; sRec = []; sFig = []; end
github
duijnhouwer/mountainpro-master
DC_SetSubtypeNr.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/DC_SetSubtypeNr.m
3,284
utf_8
b71a0a12a401ae1c1a5df02750511fe5
function DC_SetSubtypeNr %globals global sDC; global sFig; global sSetSubtypeNr; %check if data has been loaded if isempty(sDC) || isempty(sFig) return; else try intType = get(sFig.ptrListCellType, 'Value'); catch return; end end %get data on selected object if length(sFig....
github
duijnhouwer/mountainpro-master
DC_updateTextInformation.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/DC_updateTextInformation.m
2,469
utf_8
f578eb4d0f665ecb15b7edeb0f1a1dab
function DC_updateTextInformation(varargin) %update cell information window global sFig; global sDC; %check if data has been loaded if isempty(sDC) || isempty(sFig) return; else try cellOldText = get(sFig.ptrTextInformation, 'string'); catch return; end end %check if msg is sup...
github
duijnhouwer/mountainpro-master
dftregistration.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/dftregistration.m
8,234
utf_8
7dc727aebf333c1a5cef2b2821265218
function [output Greg] = dftregistration(buf1ft,buf2ft,usfac) % function [output Greg] = dftregistration(buf1ft,buf2ft,usfac); % Efficient subpixel image registration by crosscorrelation. This code % gives the same precision as the FFT upsampled cross correlation in a % small fraction of the computation time an...
github
duijnhouwer/mountainpro-master
DC_MoveROIsGUI.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/DC_MoveROIsGUI.m
6,062
utf_8
19cfc7b38e52986c8b6207e48d00cc7d
function varargout = DC_MoveROIsGUI(varargin) % DC_MOVEROISGUI MATLAB code for DC_MoveROIsGUI.fig % DC_MOVEROISGUI, by itself, creates a new DC_MOVEROISGUI or raises the existing % singleton*. % % H = DC_MOVEROISGUI returns the handle to a new DC_MOVEROISGUI or the handle to % the existing sin...
github
duijnhouwer/mountainpro-master
DC_SetSubtypeNrGUI.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions_celldetect/DC_SetSubtypeNrGUI.m
4,782
utf_8
65212bee8485f0de8ca929f7f0cc56b4
function varargout = DC_SetSubtypeNrGUI(varargin) % DC_SETSUBTYPENRGUI MATLAB code for DC_SetSubtypeNrGUI.fig % DC_SETSUBTYPENRGUI, by itself, creates a new DC_SETSUBTYPENRGUI or raises the existing % singleton*. % % H = DC_SETSUBTYPENRGUI returns the handle to a new DC_SETSUBTYPENRGUI or the handle...
github
duijnhouwer/mountainpro-master
doDetectSpikes.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions/doDetectSpikes.m
4,189
utf_8
a4699db77e2ca5cb41c7185005b6cec9
function [apFrames, apSpikes, vecSpikes, expFit] = doDetectSpikes(dFoF,dblSamplingFreq,dblTau) %UNTITLED Summary of this function goes here % Detailed explanation goes here % dFoF-criteria based transient detection to get initial guess [transients] = getTransientGuess(dFoF, dblSamplingFreq, dblTau); ...
github
duijnhouwer/mountainpro-master
doDetectCalciumTransients.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions/doDetectCalciumTransients.m
3,409
utf_8
78e3c775811f20c2ccf15966bed44f59
function spikeData = doDetectCalciumTransients(sRec,boolDetectSpikes,dblTau) % script that detects spikes in dFoF data %check input if nargin < 2,boolDetectSpikes = false;end %set switch to detect spikes if nargin < 3,dblTau = 0.500;end % set shape of exponential %generate name strRec = sprintf('%sxyt...
github
duijnhouwer/mountainpro-master
dftregistration.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions/dftregistration.m
8,234
utf_8
7dc727aebf333c1a5cef2b2821265218
function [output Greg] = dftregistration(buf1ft,buf2ft,usfac) % function [output Greg] = dftregistration(buf1ft,buf2ft,usfac); % Efficient subpixel image registration by crosscorrelation. This code % gives the same precision as the FFT upsampled cross correlation in a % small fraction of the computation time an...
github
duijnhouwer/mountainpro-master
buildSesFromPrePro.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions/buildSesFromPrePro.m
6,558
utf_8
253d89ce5e713a3d1e147005ae7a3aea
%runBuildSesFromPrePro function ses = buildSesFromPrePro(strMatRec) %define struct ses = struct; % load fluorescence data fprintf('Starting transformation from sRec type to ses type... [%s]\n',strMatRec); sLoad = load(strMatRec); sRec = sLoad.sRec; clear sLoad; %% get general info ses.strI...
github
duijnhouwer/mountainpro-master
doRegisterSubFields.m
.m
mountainpro-master/Preprocessing_Toolbox/subfunctions/doRegisterSubFields.m
5,551
utf_8
acd52908ab76b66f54ece25219a76c51
%recursive locally affine subfield reregistration algorithm to reposition %ROI locations between recordings of the same population of cells function matDataPoints = doRegisterSubFields(imRef,im2,sParams) %check input if nargin < 2,error([mfilename ':NoImages'],'Insufficient input: registration images were not sup...
github
duijnhouwer/mountainpro-master
pdftops.m
.m
mountainpro-master/Toolboxes/export_fig/pdftops.m
3,068
utf_8
7a40ce10e58d68cd7eeda67992b993f3
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
duijnhouwer/mountainpro-master
isolate_axes.m
.m
mountainpro-master/Toolboxes/export_fig/isolate_axes.m
3,484
utf_8
3997011940bb5b146bf10032a9cec39a
%ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The objects % specified must all be in th...
github
duijnhouwer/mountainpro-master
pdf2eps.m
.m
mountainpro-master/Toolboxes/export_fig/pdf2eps.m
1,524
utf_8
037f9109e96ab4385d13019a29db4639
%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
duijnhouwer/mountainpro-master
print2array.m
.m
mountainpro-master/Toolboxes/export_fig/print2array.m
6,474
utf_8
4ead930267fe61c9b2a87139ee559dc8
%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) % [A bcol] = print2array(...) % % This function outputs a bitmap image of the given fig...
github
duijnhouwer/mountainpro-master
eps2pdf.m
.m
mountainpro-master/Toolboxes/export_fig/eps2pdf.m
5,151
utf_8
b356d73460fdebe8ef6fa428d5b2c125
%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
duijnhouwer/mountainpro-master
copyfig.m
.m
mountainpro-master/Toolboxes/export_fig/copyfig.m
846
utf_8
289162022c603c9e11a52b6d56329188
%COPYFIG Create a copy of a figure, without changing the figure % % Examples: % fh_new = copyfig(fh_old) % % This function will create a copy of a figure, but not change the figure, % as copyobj sometimes does, e.g. by changing legends. % % IN: % fh_old - The handle of the figure to be copied. Default: gc...
github
duijnhouwer/mountainpro-master
user_string.m
.m
mountainpro-master/Toolboxes/export_fig/user_string.m
2,462
utf_8
dd1a7fa5b4f2be6320fc2538737a2f3e
%USER_STRING Get/set a user specific string % % Examples: % string = user_string(string_name) % saved = user_string(string_name, new_string) % % Function to get and set a string in a system or user specific file. This % enables, for example, system specific paths to binaries to be saved. % % IN: % string_name - ...
github
duijnhouwer/mountainpro-master
export_fig.m
.m
mountainpro-master/Toolboxes/export_fig/export_fig.m
29,829
utf_8
e148a5b614ce2226be691f291726feb2
%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 ... -transparent % export_fig ... -native % export_fig ... -m<val> % export_fig...
github
duijnhouwer/mountainpro-master
ghostscript.m
.m
mountainpro-master/Toolboxes/export_fig/ghostscript.m
4,342
utf_8
0be326f9358200c733989260a0649af9
%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 % is stored for future reference. % ...
github
duijnhouwer/mountainpro-master
print2eps.m
.m
mountainpro-master/Toolboxes/export_fig/print2eps.m
7,809
utf_8
7c4a232dc6574c7702a7550ebd0d6e44
%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, with two improvements over % MATLAB's print command. First, it improves the line styl...
github
duijnhouwer/mountainpro-master
runBootstrap.m
.m
mountainpro-master/Toolboxes/TwoPhoCoTo/high-level-functions/runBootstrap.m
896
utf_8
d3fb939c1c95cb44e02b488e76de435d
function [matParams] = runBootstrap(xList,matData,paramInit,functionHandle,varargin) %syntax: [matParams] = runBootstrap(xList,matData,paramInit,functionHandle,[maxIter=1000]) %dependencies: %defaultValues.m %MLFit.m % Version history: % 1.0 - May 11 2011 % Created by Jorrit Montijn fprintf('\nRunning Bootstr...
github
duijnhouwer/mountainpro-master
MovieViewer.m
.m
mountainpro-master/Toolboxes/TwoPhoCoTo/mid-level-functions/MovieViewer.m
41,189
utf_8
afae23d40f1ebfc327ad2ba3e3694515
% MOVIEVIEWER Program for creating movies from pictures and % viewing/editing them. It can load and/or edit red, green % and blue channels separately. Uses automatic channel and % frame index detection of picture files with the following % syntax: % *[0-inf]_ch[00-02].ext % The last 4 character...
github
duijnhouwer/mountainpro-master
roundi.m
.m
mountainpro-master/Toolboxes/TwoPhoCoTo/general-functions/roundi.m
724
utf_8
be42f2f394a989ef3f4bec0ca60bdff2
%%% roundi %%% % rounds a number to a certain amount of digits %syntax: % output = roundi(number,digits,argument) % %input variables: % number: the input number % digits: required amount of digits % OPTIONAL: argument: 'floor', 'ceil' or 'fix'; this makes the function use not the round function, but the function specif...
github
duijnhouwer/mountainpro-master
runBootstrap.m
.m
mountainpro-master/Toolboxes/TwoPhoCoTo/general-functions/runBootstrap.m
826
utf_8
fa67c5ae228772fd546c110f62157540
function [matParams] = runBootstrap(xList,matData,paramInit,functionHandle,varargin) %syntax: [matParams] = runBootstrap(xList,matData,paramInit,functionHandle,[maxIter=1000]) %dependencies: %defaultValues.m %MLFit.m fprintf('\nRunning Bootstrap Procedure. Please wait...\n'); %%% BOOTSTRAPPING maxIter = de...
github
duijnhouwer/mountainpro-master
retrieveClusterCovar.m
.m
mountainpro-master/Toolboxes/TwoPhoCoTo/low-level-functions/retrieveClusterCovar.m
7,357
utf_8
7a3f1b0220550e8eee8efb8e7117e5c1
function [nVec,vecDist,vecDistWeight] = retrieveClusterCovar(xVec,xVecDist,matRawCovar,matDistances,intClusterSize) %retrieveClusterCovar Retrieves the mean corriance per cluster for % every possible cluster in matRawCovar of size % intClusterSize and bins the results as specified % by the bin...
github
duijnhouwer/mountainpro-master
circ_kuipertest.m
.m
mountainpro-master/Toolboxes/Circular Statistics Toolbox/circ_kuipertest.m
3,047
utf_8
37270a986e4cad19be57eee60abb6776
function [pval, k, K] = circ_kuipertest(alpha1, alpha2, res, vis_on) % [pval, k, K] = circ_kuipertest(sample1, sample2, res, vis_on) % % The Kuiper two-sample test tests whether the two samples differ % significantly.The difference can be in any property, such as mean % location and dispersion. It is a c...
github
duijnhouwer/mountainpro-master
circ_clust.m
.m
mountainpro-master/Toolboxes/Circular Statistics Toolbox/circ_clust.m
3,346
utf_8
09f16d972b35b7b7b55b361710748587
function [cid, alpha, mu] = circ_clust(alpha, numclust, disp) % % [cid, alpha, mu] = circClust(alpha, numclust, disp) % Performs a simple agglomerative clustering of angular data. % % Input: % alpha sample of angles % numclust number of clusters desired, default: 2 % disp show plot at each ste...
github
duijnhouwer/mountainpro-master
circ_raotest.m
.m
mountainpro-master/Toolboxes/Circular Statistics Toolbox/circ_raotest.m
4,132
utf_8
a088b9d557b94032992d192ef76b8fd4
function [p U UC] = circ_raotest(alpha) % [p U UC] = circ_raotest(alpha) % Calculates Rao's spacing test by comparing distances between points on % a circle to those expected from a uniform distribution. % % H0: Data is distributed uniformly around the circle. % H1: Data is not uniformly distributed around th...
github
duijnhouwer/mountainpro-master
circ_cmtest.m
.m
mountainpro-master/Toolboxes/Circular Statistics Toolbox/circ_cmtest.m
2,127
utf_8
b8057e2fbbbaef56584aa347fe5c81cd
function [pval med P] = circ_cmtest(varargin) % % [pval, med, P] = circ_cmtest(alpha, idx) % [pval, med, P] = circ_cmtest(alpha1, alpha2) % Non parametric multi-sample test for equal medians. Similar to a % Kruskal-Wallis test for linear data. % % H0: the s populations have equal medians % HA: the s pop...
github
duijnhouwer/mountainpro-master
circ_wwtest.m
.m
mountainpro-master/Toolboxes/Circular Statistics Toolbox/circ_wwtest.m
4,628
utf_8
a03e6a3eebe3fefdc3bb309322d2a671
function [pval table] = circ_wwtest(varargin) % [pval, table] = circ_wwtest(alpha, idx, [w]) % [pval, table] = circ_wwtest(alpha1, alpha2, [w1, w2]) % Parametric Watson-Williams multi-sample test for equal means. Can be % used as a one-way ANOVA test for circular data. % % H0: the s populations have equal m...
github
duijnhouwer/mountainpro-master
chcenters.m
.m
mountainpro-master/general/chcenters.m
4,963
utf_8
7bcc17cb3d9506f7c58b803604140ef6
function [centers, metric] = chcenters(varargin) %CHCENTERS Find circle center locations from the Circular Hough Transform accumulator array % CENTERS = CHCENTERS(H, SUPRESSIONTHRESH, SIGMA) finds all the potential % circle center locations from the accumulator array H. CENTERS is a % P-by-2 matrix, where P is t...
github
yu-jiang/yu-jiang.github.io-master
second_order_example.m
.m
yu-jiang.github.io-master/papers/2012/automatica/second_order_example.m
1,289
utf_8
3beda24116c17b23b536e51ee790220b
% This is a simple example to illustrate how the algorithm in "Computational % adaptive optimal control for continuous-time linear systems with % completely 1known dynamics," by Yu Jiang and Zhong-Ping Jiang % Automatica, 2012. function []=second_order_example() global A B K clc A=[0 1;-1 -3]; B=[0;.6]; Q=...