sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
8d7297e7ccc24c562de8380e7db89ecd8138921e52a072dfff145869569857c2 | MATLAB | 4,109 | 164 | clear
clc
close all
dire='model_100_';
%%% seed of the base RNN
model_num=12
compos=[0 logspace(-1,3,50)];
compos=compos(2:6:26);
compos=fliplr(compos)
%%% VARY WEIGHT OF D.I.M.
%%% (VERTICAL AXIS IN EXT.DATA FIG. 6)
f=figure;
set(f,'Position',[486 348 1129 636]);
for iii=1:length(compos)
[iii leng... |
bcda18a366c53cee1516051a4ed7b86edb70744a0e04633a6eb94b48d56a1b77 | MATLAB | 4,109 | 129 | % Matlab script for fitting HDM to ROI timeseries
%
% Download/clone to "bas_dir" below:
% 1. "AgeingHRF" from https://github.com/RikHenson/AgeingHRF/
% 2. "HDM-toolbox" from https://github.com/pzeidman/HDM-toolbox
%
% Link to local SPM12 directory, or install from
% https://www.fil.ion.ucl.ac... |
ecfddced599ea6a74247898c2d1d882626ee1f0232a675299663e432339656e8 | MATLAB | 4,109 | 158 | function [dat] = read_nexstim_nxe(filename, begsample, endsample, chanindx)
% READ_NEXSTIM_NXE reads specified samples from a NXE continous datafile
%
% Use as
% [hdr] = read_nexstim_nxe(filename)
% where
% filename name of the datafile, including the .bdf extension
% This returns a header structure with t... |
2161fff40c15dde9dcb45d89a70a9f5c15276c8a57d4d3d300293d3ad190cb71 | MATLAB | 4,110 | 107 | %{
Copyright (c) 2025 Axion BioSystems, Inc.
Contact: support@axion-biosystems.com
All Rights Reserved
%}
classdef Tag < handle & matlab.mixin.Heterogeneous & matlab.mixin.CustomDisplay
%TAG Base class of user genreated metadata for a file
% Currently, AxionFileTags include Annotation (from the pla... |
25b63c453468045a90488ef2887836e6749d7fbb2170a2dc3f625fa227557336 | MATLAB | 4,110 | 115 | %% Analyze and plot within-event spiking and decode statisics across parameter grids
% gridAnalysisEventSpiking.m
%
%% Choose which simulation results to analyze
decodeFileID = "mainGrid300s"; % Select which decoding file result ID to analyze
%decodeFileID = "mainPaperGrid"; % Select which decoding file result ID to ... |
64e59cb9dd25eaa3117e1c9bc4438d79eccd9163b9a418b80e6163e4136f31d3 | MATLAB | 4,110 | 98 | function [success_code, outputs] = batch_process(prefix, func, run_num_list, arg_list, ...
postfix_list, pool, num_jobs, max_running_jobs, wait_sec, log_dir)
success_code = true;
outputs = {};
disp('set up cluster')
tic;
%Note that 'local_logical_cores' is established in the
%setup_cluster... |
ee8c2c76068f27660626d7db8769b71bc5c905b4e8caf11ebe948711c70b735a | MATLAB | 4,110 | 96 | function [ events, waves ] = wlProc_getEvSegmentsUsingFreqDual( ...
data, samprate, bpfband, noiseband, noisesnr, ...
maxglitch, maxdrop, taudc, tauac, peakdb, enddb)
% function [ events, waves ] = wlProc_getEvSegmentsUsingFreqDual( ...
% data, samprate, bpfband, noiseband, noisesnr, ...
% maxglitch, maxdrop, ... |
3de28161cae8cd3d90365fc7a0dce830c0a0760aa785f2851eeecd1f9541836a | MATLAB | 4,111 | 126 | % axcopy_lan() - Copy a Matlab figure axis and its graphic objects to a new pop-up window
% using the left mouse button.
%
% Usage: >> axcopy
% >> axcopy(fig)
% >> axcopy('noticks')
% >> axcopy(fig, command)
%
% Notes:
% 1) Clicking the left mouse button on a Matlab figure axis co... |
600fc20010ad56ef1c6cf6b232a46169e0be97b99f782517393d3aba5c122638 | MATLAB | 4,111 | 109 | function BehaviorAnalysis(config,varargin)
%%
if strcmp(mfilename,'') || nargin==0
opts=Analyze.Libet.Config_BasicLinearModel;
else
opts=feval(config,varargin{:});
end
if ~exist(opts.ResultsDirBehav,'dir'); mkdir(opts.ResultsDirBehav); end
ConfigureSubject(opts.Subject);
if ~iscell(opts.Analysi... |
7d0ee4c232f8978c6223d90f35ea200e8dcd697b32d06b6b2fa42792eb895b20 | MATLAB | 4,111 | 108 | function [choices, feedbacks, simulation]=demo_QlearningSimulation()
% // VBA toolbox //////////////////////////////////////////////////////////
%
% [choices, feedbacks] = demo_QlearningSimulation()
% Demo of Q-learning simulation. This demonstrate in particular how to use
% the toolbox to simulate data with a dynamic ... |
241068a53f15b3af80e88437b3d3f8c64a0265c67ebc720cb69d980a854ff57f | MATLAB | 4,112 | 122 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% fit1_dipole_fitting.m %%%
%%% Fit a dipole for the selected model and raw data %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% general opti... |
51d80134e3941f07bd344846fe923ddb3bbbd38215ea7dea240bfbb75eb47659 | MATLAB | 4,112 | 133 | function mesh = add_blob_spectral(mesh, blob)
% mesh = add_blob_spectral(mesh, blob)
%
% Adds circular (2D) and spherical (3D) anomalies
% to mesh.
% mesh is the mesh variable or filename.
% blob contains the anomaly info.
% blob should have the following format:
%
% blob.x - x position
% blob.y - y position
% blob.z ... |
d0703532ce3b31e4bcb051f1818493b37e4a11c3486b561fb7c2d944e39299b4 | MATLAB | 4,112 | 119 | % Process DLC for postprocess
function [ts, x, y, angles] = process_DLC_for_ephys(basepath,varargin)
% Unpacks DLC CSV, saves all position to structured matfile, and outputs
% target coordinates for saving in CellExplorer format.
%
% Laura Berkowitz 2021
% Inputs:
% basepath: path to raw data and dlc csv
%
% (O... |
7702e94fcdd6c42eae1dbff2e4811bc155fdefd83505273935cf7f29515435b7 | MATLAB | 4,113 | 108 | function info = CombineSplitTracking(lblFile,infoFile,outTrkFile,varargin)
[logfile,docheckoverlap] = myparse(varargin,'logfile','','docheckoverlap',true);
islogfile = ~isempty(logfile);
if ~islogfile,
fid = 1;
else
fid = fopen(logfile,'w');
end
[info,isdone] = CheckSplitTracking(lblFile,infoFile);
if ~all(is... |
9a55dfcad5acb41b5547aa70e52ffdd94ddf68f3cc8bd463de00d8fec6443bb4 | MATLAB | 4,114 | 80 | %%
%This script was created by Professor Baxter Rogeres (VUIIS), but is heavily modified based on our lab pipeline by Jin Wang 3/7/2019
%(1) realignment to mean, reslice the mean.
%(2) segment anatomical image to TPM template. We get a deformation file "y_filename" and this is used in normalisation step to normalize al... |
f9dd34e28793778b3822ba9a936b31de46ae4d17e3b75d595ed0add2a89cc3d2 | MATLAB | 4,114 | 128 | %%% Simple linear unmixing script for Guo et al (Science Advances) manuscript submission.
%%% Written by Chetan Poudel, Ziyu Guo, and Joshua Vaughan. (2024)
clear all
% Enter path to the analysis script.
script_path = 'A:\MATLAB scripts\';
cd(script_path)
% Select region of interest (ROI) for unmixing (eg. 1:2048 ... |
8e3ccdcdd6756ef7d3684eb925296878a10187ec6de69c19ce1a6fd341ff65eb | MATLAB | 4,120 | 99 | function [ titlestr, settings, results ] = freezeFeatures( dataview, settings )
% Transfixes the given coordinates for points in current pointfilter into
% new hardcoded coordinates.
%
% Use this to cache coordinates.
%
% See also dspace_features.PartialStandardCoordinates.
%
%
... |
30ab8a104395b3cc3f8f1715b6b334195680e89d3cc324f9e87e1b247c31d1d7 | MATLAB | 4,121 | 164 | function [Xbest,idx,totalcost,poslambda] = ChooseBestTrajectory(X,appearancecost,varargin)
[priordistfun,poslambda,dampen,fix] = myparse(varargin,'priordist',@(x) zeros(size(x,1),1),'poslambda',[],'dampen',.5,...
'fix',[]);
[D,T,K] = size(X);
if ~isempty(fix) && numel(fix) ~= T,
error('fix must be a vector of le... |
3e2a238cd64c85aa0eb6c2684acfa58b8ea73a589fbc726a7e93d4a41765e48c | MATLAB | 4,121 | 152 | function F = pmlFigureInfo(includeEx, includeSol)
%% Parse every figure in PML
%
% F{i}(j) is a struct storing info on the jth figure in chapter i
%
% Each struct has these fields:
%
% options - the options used with the figure, e.g. 'height=1.5in'
% caption - the full raw caption text, (as one line)
% label - ... |
849a6354e058e043db2bfc680633f320d971fb2349fc964f9a937e73f575355a | MATLAB | 4,121 | 167 | %New method for statistically finding assemblies and RACE recruitment
%with Bonferroni correction, from clustering output
%load('Race.mat')
%load('Clusters.mat')
%load('NClustersOK.mat')
%load('TRace')
[NCell,NRace] = size(Race);
NCl = NClOK;
NShuf = 5000;
Nt = 14000; % For multiple movies
%% Statistiscal definitio... |
c9e475c875d62d6a98710aacbf5dc221ffe9724df5db5374483dbcb3518b8664 | MATLAB | 4,121 | 107 | function [HeadMov, CoilMov] = HeadMotionPrePost(Dataset, Verbose)
% Returns the head movement in cm, from pre/post localizations in a MEG dataset.
%
% [HeadMov, CoilMov] = HeadMotionPrePost(Dataset, Verbose)
%
% Head movement is calculated from the "head zeroing" datasets collected
% before and after the ma... |
28a01c7e922d5bb49f5b10fe879f662d3777e9d295f3eefd416044e611a13ef5 | MATLAB | 4,123 | 117 | function STATS=mwwtest(x1,x2)
% Mann-Whitney-Wilcoxon non parametric test for two unpaired groups.
% This file execute the non parametric Mann-Whitney-Wilcoxon test to evaluate the
% difference between unpaired samples. If the number of combinations is less than
% 20000, the algorithm calculates the exact ranks distrib... |
e16da75dc32fec4c116f4d6991c0a204dcd22b7cf62719e2463ea140dcf03c60 | MATLAB | 4,123 | 63 | function [Epri, Ppri] = bemf3_inc_field_electric(strdipolePplus, strdipolePminus, strdipolesig, strdipoleCurrent, ...
P, t, Center, Area, normals, R, flag)
% Computes potential and electric field from the dipole distribution via the FMM
... |
fe426ee48b2b26fa97b56953635e4c43ce36602582dc7247f59e71689b04824a | MATLAB | 4,123 | 168 | %% Classify using KNN
%
%%
% This file is from pmtk3.googlecode.com
function knnClassifyDemo()
%% load data
loadData('knnClassify3c');
Ntest = size(Xtest,1);
Ntrain = size(Xtrain,1);
%% Plot data
range = [min(Xtrain(:,1)) max(Xtrain(:,1)) min(Xtrain(:,2)) max(Xtrain(:,2))];
figure;
plotLabeledData(Xtrain, ytrain)
... |
a51f8215ece4e9e7f1394c65043ba720c47c8cce3f2bed08206d1997c4ab5d42 | MATLAB | 4,124 | 134 |
%%
[varargin,rescale] = Utilities.ProcVarargin(pltFCNArgs,'rescale',0);
[varargin,Sessions] = Utilities.ProcVarargin(pltFCNArgs,'Sessions',[]);
% typeID={'DecodeTest_corrNM'};
%
% cvAccuracy=DataConvert.embCell2mat(Analyze.returnFieldValues(PlotData,typeID{decodeType}));
%
% FigHandels(1)=plt.fig('un... |
24ae15b0d34319830cfe52a361be0b9e22fda819cb27c5f15f2f8aeb0cd0ca8b | MATLAB | 4,125 | 116 | %% main_DIAN_centrality_anal_signed
% data available upon request from Dominantly Inherited Alzhiemer Network
% Consortium
% savedir = './postcovbat_individual_signed_mst_0.10_Z_';
% function main_DIAN_centrality_anal_signed_final(savedir)
clear;close all;
here = pwd;
addpath(here)
cd '/data/wheelock/data1/people/Cindy... |
c8a205ad5269d420b7b109ea3dd2704ab1433a836fa97acdd453f314956a0a00 | MATLAB | 4,126 | 160 | function meg_plotGroupMax
load('/Users/kantian/Dropbox/github/ta-meg-analysis2/groupDataMat/TA2/D.mat')
% load('/Users/kantian/Dropbox/Data/TA2/MEG/Group/mat/subjectD2.mat')
%
% D.channelSortMethod = 'peakProm';
% D.nChannels = 5;
%
% D.subject.cueT1 = subjectD2.meanCueT1;
% D.subject.cueT2 = subjectD2.meanCueT... |
558d91a4652289d56eb5cb3d6a8cbda0b2e8a18b5685cf5a20f283a6c9fb0426 | MATLAB | 4,127 | 146 | function [ FV ] = mesh_refine_tri4(FV)
% mesh_refine_tri4 - creates 4 triangle from each triangle of a mesh
%
% [ FV ] = mesh_refine_tri4( FV )
%
% FV.vertices - mesh vertices (Nx3 matrix)
% FV.faces - faces with indices into 3 rows
% of FV.vertices (Mx3 matrix)
%
% For each face, 3 ne... |
1d8c138f6bb3d15c33c5213e7fb464a42cbeeec9a3d5f9732319d744b21896c8 | MATLAB | 4,128 | 129 | function CAR_HP_Intan(dat_path, varargin)
% Loads intan amplifier.dat and performs CAR to prepare for spike sorting.
%
% Subtracts median of each channel, then subtracts median of each time
% point and also high-pass filters (default at 300 Hz)
% Does so in chunks, users buffers to avoid artefacts at edges
%
% filenam... |
de4916d5ca0e13d904ee7ed69fb77e3d597b729d4bab00c664a17ca94ae2cdf9 | MATLAB | 4,129 | 108 | function [KendallW] = y_KendallW_AcrossImages_Surf(RaterImages_L, RaterImages_R, MaskData_L, MaskData_R, AResultFilename)
% Calculate Kendall's W across images. (e.g., different raters or Test Re-Test)
% FORMAT [KendallW] = y_KendallW_AcrossImages_Surf(RaterImages_L, RaterImages_R, MaskData_L, MaskData_R, AResult... |
0b7a2667e408456fae88feb1b582930c080ef89fe04f4a10fdb03c8e5f2cf330 | MATLAB | 4,130 | 127 | %% Reproduce figures 1,2,3 from Bolasso: Model Consistent Lasso Estimation
% throught the Bootstrap, by Francis R. Bach.
%%
%PMTKreallySlow
% This file is from pmtk3.googlecode.com
seed = 2008;
rand('twister',seed);randn('state',seed);
if(exist('bolassoDemoResults.mat','file'))
fprintf('loading data from file...\... |
1aa9953358310ab8e2f3a6cc8436e78a70204c83193426dc51fa91e2b2620bfd | MATLAB | 4,130 | 114 | function [data, T] = transform_dataHMM(data, T, options)
%
% Helper function to transform data according to embeddings/transformations
% used in the HMM
% Christine Ahrends, Aarhus University 2022
if iscell(T)
if size(T,1)==1, T = T'; end
for i = 1:length(T)
if size(T{i},1)==1, T{i} = T{i}'; end
en... |
7ccb46570d33bd99b9510c60129571d0a54c0950e016cba9773c7e6be1c24814 | MATLAB | 4,130 | 62 | function [ slice, found, loaded, specificFile, times ] = utils_AlignAndExtractFunctionalSlice( PARAMS, dicomDir, scanNum, tr, cutoffTime, hook )
% (c) Coraline Rinn Iordan 09/2017, 11/2017, 04/2018 (no GZIP, optimized timing)
%%%%% REQUIREMENTS -- DURING PREVIOUS PROTOTYPE PREPROCESSING:
% pick functional template fro... |
09d584471100654b398fd0be81107a4ff32fe0b9a223aa02c47e22cd36d80aff | MATLAB | 4,132 | 103 | % This is a mesh processor script: it loads model and the dipole
% parameters into workspace and performs basic preparatory operations
%
% Copyright SNM/WAW 2017-2024
%% Setup path to engine
addpath(fullfile('../Engine'));
%% Setup parallel port
numThreads = 30; % number of cores to be used
tic
pp... |
881c2e849e946d49fa1c73f40c33efd795d8fe59129202fa94e3891b81b23b5e | MATLAB | 4,133 | 113 | function O_trans=bspline_grid_fitting(O,Spacing,D,X)
switch size(D,2)
case 2
O_trans=bspline_grid_fitting_2d(O,Spacing,D,X);
case 3
O_trans=bspline_grid_fitting_3d(O,Spacing,D,X);
otherwise
error('bspline_grid_fitting:input','unknown input dimmension');
end
function O_tran... |
ec5c213748fdd5d52dbc7c7eb77d4c16d59c99e41d0cd6da1535c2bb564f738f | MATLAB | 4,133 | 146 | if active_images(i),
%fprintf(1,'Loading image %d...\n',i);
if ~type_numbering,
number_ext = num2str(image_numbers(i));
else
number_ext = sprintf(['%.' num2str(N_slots) 'd'],image_numbers(i));
end;
ima_namep = [proj_name number_ext 'p.' format_image];
ima_n... |
65df3b9dbb50fd99a5e3a0b9da88f9ab955f99275451704e0302d9de63285620 | MATLAB | 4,134 | 136 | % plot_bigSbigT_multipleS_trialAvg_decision
% new version of plot_bigSbigT_multipleS_trialAvg_decision_normS
pSL = colms - 1;
for dim = dimms
i = i + 1;
clear sl rl ylims
switch dim
case 1
sl = sigSL.TinC*1000;
rl = sigRL.TinC*1000;
ylims = [0 30];
... |
02b67497692d64d2387e8818be1dcb4ddc71caa855d121e5898ec21d6f2025fb | MATLAB | 4,135 | 116 | classdef ShellVariableAssignment < apt.ShellToken
% apt.ShellVariableAssignment - Environment/shell variable assignment token
% for shell commands
%
% Represents a shell environment variable assignment in the form "VARIABLE=value".
% The value can be either a plain string or an apt.MetaPath that will be prope... |
0ad87cdd30608bffb434a13603d84d152d59ee1938ab9478330581b191f23b3a | MATLAB | 4,135 | 105 | clear all;
close all;
rng(0)
%% Train the Network:
%---------------------------------------------------------------------------------------------------------------------------------------------------------
%Folder where the preprocessed mics are placed:
imDir1 = '/mnt/DATOS2/jvargas/ScipionUserData/projects/RNP_Vargas... |
02b8dacef70d696054b1df8defcdfe37956d212d586a8ed0c097d25856974140 | MATLAB | 4,136 | 115 | function [w, output] = logregBoundOptL2Stepwise(X,Y,lambda)
% Fit the weights for L2 penalized multinomial logistic regression by
% updating each component of each weight sequentially in O(ndc)time where n
% is the number of training examples, d is the number of dimensions and c
% is the number of classes.
%
% Inputs:
... |
12c1f8699c05f06458fab1f4957b6f74bb89c83b0d7a536267dfe0071598824c | MATLAB | 4,136 | 183 | clear
clc
%%% This script computes the psychometrics data for each rat
%%% create a list of all rat with behavioral data
d=dir('data/Sessions_trials/*sessions.mat');
for qqq=1:length(d)
[qqq length(d)]
%%% load behavioral data
load(['data/Sessions_trials/' d(qqq).name]);
%%% rat name
... |
aaf7687a0b8823d24d00f0da39166a1262e2f2346070d43bc629cb22e1e8d25c | MATLAB | 4,136 | 111 | function ft_test(varargin)
% FT_TEST performs selected FieldTrip test scripts or reports on previous test
% results from the dashboard.
%
% Use as
% ft_test run ...
% ft_test moxunit_run ...
% ft_test report ...
% ft_test compare ...
%
% ========= Running tests =========
%
% To... |
fd61397cecd7986edcb26daceb875eb1d1a389f1f3143966fc1ce9a2cdb6ed51 | MATLAB | 4,136 | 121 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% fit1_dipole_fitting.m %%%
%%% Fit a dipole for the selected model and raw data %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% general opti... |
f9c47ecf520a9837a43a5a5972fc4fe0aa0c9350c6e4225a3d99906844029cd6 | MATLAB | 4,137 | 89 | function parallel_calculate_PPIs(stat_path,exp_folder,N,N_ROIs)
% ========================================================================
% Ruslan Masharipov, October, 2023
% email: ruslan.s.masharipov@gmail.com
% ========================================================================
tic
for subji = 1:N
for j ... |
098fd63cab3ba1c102c90cfac2a256cbb62f00598fadee3c3784a887c0f2ba8f | MATLAB | 4,139 | 148 | function VBA_setup()
% VBA_setup()
% Cleanly add the VBA_toolbox to the Matlab path.
% Please prefer this function to addpath() or addpath(genpath()) to ensure
% all subfolders are included with the notable exception of the .git tracker.
fprintf('\n');
fprintf(' ========================================================... |
218d0eebc1831b4f4cea473fa3ab027cb7f641757d5615556b08572380517d65 | MATLAB | 4,140 | 91 | clear all
clc
tmp=pwd;
cd ..
addpath(genpath(fullfile(pwd, 'utils/')));
addpath(genpath(fullfile(pwd, 'spmutils/')));
cd(tmp);
% set the value to the Pred_folder set in step 2
predfile_dir='';
predfile_suffix='.nii';
% directory of coregisterred MRA files
coreg_MRA_dir=nc_GetFullPath('../1_preprocessing/... |
2f79795bacdf7f3b5281b258e411c24f1f96dcc74ab5c2a608a3dc1a42a51618 | MATLAB | 4,140 | 117 | function [w, output] = boundOptL2Stepwise(X,Y,lambda)
% Fit the weights for L2 penalized multinomial logistic regression by
% updating each component of each weight sequentially in O(ndc)time where n
% is the number of training examples, d is the number of dimensions and c
% is the number of classes.
%
% Inputs:
%
% X ... |
94c7a16ce6ce5666aa14c91383a2c2ed1bbe37584f32afb60d04bfb5fbdba838 | MATLAB | 4,143 | 123 | %% permtest_tsdata_to_pwcgc
%
% Calculate null distribution for pairwise-conditional time-domain MVGCs from time series
% data, based on a permutation test
%
% <matlab:open('permtest_tsdata_to_pwcgc.m') code>
%
%% Syntax
%
% FP = permtest_tsdata_to_pwcgc(U,p,bsize,nsamps,regmode,acmaxlags,acdectol)
%
%% Arguments
%
... |
9b5c2aea1082191ecc117e777831bb9fa3b9be0e741c929ab694118655fd44b1 | MATLAB | 4,143 | 136 | function WholeBrainRegressPermuteParallel2(varName, nPerms, saveFolder, eeg1, trialTabTrim)
% function WholeBrainRegressPermuteParallel2(varName, nPerms, saveFolder, eeg1, trialTabTrim)
% regress EEG at each time point and channel against behaviour, use
% permutation testing (and clustering to adjust p values afterward... |
b76f8dc24e8b7691739e8dff368db241d8d1509ab75daf07cc15915b6d60953d | MATLAB | 4,143 | 117 | function [] = generateTrialByTrialKinematics(dataset,figureName)
close all
load(dataset,'data','cellLabels','obsLabels')
fs = 20;
yl = {[0 4],[0 1], [0 25],[0 25],[0 90], [0 90],[150 180],[0 60],[-4 4]};
units = {'mm','norm','mm/s','mm/s','deg','deg','deg','deg','norm'};
gender = cellfun(@(x) extractAfter(x,'Gender: '... |
c9ac345a11c90aadd4b4cdf1cae7359fcbe6b3d9df533ada2860c69d06c68475 | MATLAB | 4,143 | 128 | function data2=CMapMix2(data,params)
% This function combines colormaps for data scale ranges. It is assumed
% that the data is in 1 column, and that the data is to be scaled to the
% maximum. If the data is to be plotted relative to some absolute (i.e.,
% the numbers in the data are to be respected), the absolut... |
d3114e582b1c1c8407aba4b125ba7fe08a843944639dad71dc0e21cd1bae0123 | MATLAB | 4,143 | 140 | % Demo for 1-region DCM for fMRI.
% This demo inverts the DCM for fMRI model, which contains the ballon model
% as a generalized observation function (not affected by stochastic
% innovations).
close all
clear variables
%-----------------------------------------------------------
%-------------- DCM model specificati... |
7dbcf0230bbb98b9493061883b1eb5bcca89a61f5b1fd389489b14f2206da6ea | MATLAB | 4,144 | 114 | function [sigcluster,pval,maxval] = limo_ecluster_test(orif,orip,th,alpha_value,boot_maxclustersum)
% function sigcluster = limo_ecluster_test(orif,orip,th,alpha_value)
%
% ECLUSTER_TEST computes sums of temporal clusters of significant F values and
% compares them to a threshold obtained from ECLUSTER_MAKE.
% The fun... |
adf65d71166a98191535832eab23438c2e226527a5f3ca94a6a9d742165f2b72 | MATLAB | 4,144 | 112 | function mappedX = llc(X, neighbor, no_dims, R, Z, eig_impl)
%LLC Runs the LLC algorithm (given information on the formed factor analyzers)
%
% mappedX = llc(X, k, no_dims, R, Z, eig_impl)
%
% Runs the LLC algorithm (given information on the formed factor
% analyzers). The variable X contains the dataset (transposed)... |
dea360bd55509b619cef124e38ac03cd6677d19e17ae831dd643271bea234b38 | MATLAB | 4,144 | 106 | function [model, dataSamples, LL] = gaussMissingFitGibbs(data, varargin)
% Perform gibbs sampling for the missing values of a data matrix
% Algorithm consists of a stochastic imputation stage (sampling from conditional given known)
% and then sampling from the resulting posterior for mu and Sigma given the current stat... |
46e769cff777bdc54a48355550f771958e68afd71f19490a1083d373608eab2d | MATLAB | 4,147 | 163 | function y = recurrentQuadratureFilter(x,lambda,omega,tau,n,RIC,deltaT)
% y = recurrentQuadratureFilter(x,lambda,omega,tau,n,RIC,deltaT)
%
% x: 3D input signal with time in the 1st dimension (real or complex
% valued)
% y: output signal (real or complex valued: see RIC)
% omega: preferred temporal frequency
... |
368dba01b1098a95663610006ed4f79a2560256f4d8ad7db62f8961c993641d6 | MATLAB | 4,148 | 115 | function x = VBA_spm_invTcdf(F,v)
% Inverse Cumulative Distribution Function (CDF) of Students t distribution
% FORMAT x = spm_invTcdf(F,v)
%
% F - CDF (lower tail p-value)
% v - degrees of freedom (v>0, non-integer d.f. accepted)
% x - T-variate (Student's t has range (-Inf,Inf))
%____________________________________... |
08bfde26eb13409d0e6214e9bea6c70d0e5100ed0f520cb4c6ecd8012136f08b | MATLAB | 4,151 | 120 |
function find_and_remedy_preprocessing(data_folder,varargin)
% find_and_remedy_preprocessing uses session_status to preprocess sessions with missing
% analyses. Analyses carried out relative to completion of dependencies.
% For instance, sleep states can only be run if the .lfp file is present in
% the data bath.
%
% ... |
245187de6f04df7882c856b5cb8818aac7d7cc1f468080b38f548e458581a1a6 | MATLAB | 4,151 | 107 | % FADE-SAME: Figure 3
% clear
% close all
%%% Step 1: load data %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load results file
FADE_file = '../FADE_scores/FADE_SAME_scores_2021_01_11_FADE_only.xls';
[num, txt, raw] = xlsread(FADE_file);
clear num txt
% specify inference
alpha = 0.1;
% extract variables
... |
cbed29add817795b085e6e4312dbda571f6ec05f28a017a2d6049a1b3a1037a0 | MATLAB | 4,151 | 107 | function [filteredData] = jbm_datafilter(varargin)
% jbm_dataFilter(dataMatrix,filterType)
% filterTypes:
%'Identify Corrections' will correct and corrected absences
% will become a 5 and corrected presences will become a 4.
%
% 'Execute Correction' will replace all 5s with 0s and replace all 4s with 1s,
% ret... |
7b0f96f403cd9774c092f13e252e2824a45c5b69f06e12108a438f1e63de56f8 | MATLAB | 4,152 | 148 |
function [blockNames,blockData,ok]=ReadStarFile(name)
% function [blockNames,blockData,ok]=ReadStarFile(name)
% Read a Relion .star file and put its contents into two cell arrays.
% blockNames is a cell array of the blockNames. For example here are
% values from reading a post_run.star file.
%
% >> blockNames{1} =
%... |
903e71f0700cd786fd8b6182b9d246c710928ac27373e3356303ee23f9758b7b | MATLAB | 4,153 | 79 | % Scale up image in ANTs
function smooth_output = antsResample(input, new_XYZ_dimension, smoothing_sigma, convert2u16)
% Input can be a file, folder, or files with *. STRING
% new_XYZ_dimension is a new file dimension in the units of original file. NUMBER
% smoothing_sigma is the smoothing kernel in pixels. NUMBER
... |
b047662b1df23b80ec0c05052c93bada3e686f83b826fb148a587bdad868c53e | MATLAB | 4,154 | 138 | addpath('./functions')
%% Delay line analysis
filename = '../data/FIG5_delay.csv';
plotflag = 1;
if(plotflag)
figure;
end
T = readtable(filename);
channelorder = [3 5 4 2];
time = table2array(T(:,1));
time = (time-min(time(:)))*1e6;
layers = table2array(T(:,channelorder));
if(plotflag)
clf
... |
2332d6498314237b6685e62990df056dd498d8245725e67c1c7137458baf8f1d | MATLAB | 4,155 | 112 | function mesh = set_mesh_type(mesh,type)
% mesh = set_mesh_type(mesh,type)
%
% changes mesh type and optical properties
%
% mesh is the variable or mesh location
% type is the mesh type
%% make sure it's not a conversion between fem and bem
if isfield(mesh,'type')
bem1 = 0;
if strcmp(mesh.type,'stnd_bem') ||... |
c9b4034167db21ef0d7be08083bfec9178dbb1e86629274babce4577c6527d60 | MATLAB | 4,155 | 131 | function spkDat = RemoveShortIsi(spkDat, varargin)
% Removes duplicate waveforms (typically created by waveform realigment) identified by short ISI.
% This function can fix ISI violation problems (not necessarily a good thing)
% The waveform best matching its cluster mean is kept, other ISI violators are removed.
% wi... |
d484990ad7de516d2b8c3f65b87419d9e233d5e7a23b86c8426ad98d73191f2c | MATLAB | 4,155 | 127 | % FADE-SAME: Table 2
% clear
% close all
%%% Step 1: load data %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% load results file
FADE_file = '../FADE_scores/FADE_SAME_scores_2021_01_11_FADE_only.xls';
[num, txt, raw] = xlsread(FADE_file);
clear num txt
% specify inference
conf_lvl = 0.9;
% extract variable... |
dd9282c472f27a6d3c0f10d5336c5fe699a96dbec952864ba7e51e0b6e6cd7f3 | MATLAB | 4,155 | 109 | function [U] = em3ddir(zk,srcinfo,targ,ifE,ifcurlE,ifdivE)
% EM3DDIR Slow direct Maxwell kernel sums (reference for EMFMM3D).
%
% U = em3ddir(zk,srcinfo,targ,ifE,ifcurlE,ifdivE)
%
% Maxwell direct evaluation in R^3: evaluate all pairwise particle
% interactions with targets. This is the slow O(N^2) direct code use... |
5fd361bfde2a0e1e7b7f70c4ddc0b94d23dcf7e0c7de90ed1bcca4f40a7ae8d3 | MATLAB | 4,156 | 108 | function [ChannelLabels, Time, Frequency, Data, Info] = read_besa_tfc(FILENAME)
% READ_BESA_TFC imports data from a BESA *.tfc file
%
% Use as
% [DataType, ConditionName, Channels, Time, Frequency, Data] = read_besa_tfc(FILENAME)
%
% This reads data from the BESA Time-Frequency-Coherence output data file
% FILENAME ... |
46e77090086de2a8cc100182263fb9ec0b8216bcec1982076912f9d9b263675d | MATLAB | 4,158 | 147 | function [kappa,errs,areas,hfig] = TuneOKSKappa(annoterrdata,varargin)
hfig = [];
[fn,doareanorm,dormoutliers,nremove,pttypes,doplot,distname] = ...
myparse(varargin,'fieldname','intra','doareanorm',false,'dormoutliers',false,'nremove',0,...
'pttypes',{},'doplot',false,'distname','gamma2');
npts = size(annoterrda... |
c9b7efa644e0a921c4ca389f79352ca85907ff674dc4706d9e19b0c9c2ddd8e1 | MATLAB | 4,160 | 1 | function [ SUCCESS , ExperimentID, SubjectID, Phase, Box, MatlabStartDate,...
Duration, TSdata, Notes, Weight, Program, FileReportedUnits ]...
= TSload2ColWithHeader (filename,delimiter)
%
% Syntax: [ SUCCESS , ExperimentID, SubjectID, Phase, Box, MatlabStartDate,...
% Duration, TSdata, Notes, Weight, Prog... |
bfd44c229cfa6e0fa77413c3564b57c5a52cad3bcb4aa1fc42026a7ee1c46406 | MATLAB | 4,165 | 132 | % This script postprocesses behavior data only in CellExplorer format.
function process_behavior_batch(data_path,metadata_path,varargin)
% Assumes general behavior file and *maze_coords.csv is in basepath.
p = inputParser;
p.addParameter('overwrite',false,@islogical)
p.addParameter('redo_rescale',false,@islogical)
p.... |
040e2e75aa0b3a337ad7397167f99c5334daf20b74f815722cec7544a10b5230 | MATLAB | 4,166 | 121 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% fit1_dipole_fitting.m %%%
%%% Fit a dipole for the selected model and raw data %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% general opti... |
1a647c63113fa9be8104dcf5f1fa880c682d42462b3dfba9bad859f52ce8d958 | MATLAB | 4,166 | 141 | function a = ellipseFit(X,Y)
% FITELLIPSE Least-squares fit of ellipse to 2D points.
% A = FITELLIPSE(X,Y) returns the parameters of the best-fit
% ellipse to 2D points (X,Y).
% The returned vector A contains the center, radii, and orientation
% of the ellipse, stored a... |
4a105888611b381c5f80faa381a908f699ae6f3aa9ceb4c9de2df6e2749e9481 | MATLAB | 4,167 | 151 | function [Ain,Cin,bin,fin] = NMF_adapt3(Y,A0,options)
% [Ain,Cin,bin,fin] = NMF_adapt3(Y,A0,options)
%
% Adapted from sparse_NMF_initialization.m from MATLAB implementation of CaImAn
% (https://github.com/flatironinstitute/CaImAn-MATLAB)
%
T = size(Y,ndims(Y));
if ~ismatrix(Y)
Y = re... |
2f8931cba51eb9c71a244db1e32ed2399eec14b5eb1cd0911ca63a2e22bad0fd | MATLAB | 4,168 | 118 | function [ avw ] = avw_hdr_make
% AVW_HDR_MAKE - Create Analyze format data header (avw.hdr)
%
% [ avw ] = avw_hdr_make
%
% avw.hdr - a struct, all fields returned from the header.
% For details, find a good description on the web
% or see the Analyze File Format pdf in the
% mri_toolb... |
f4d96439c6faf149d06681006c596181ed2b32b2d2262973d246e4de88000d63 | MATLAB | 4,168 | 132 | % minentest N-dimensional, 2-sample comparison of 2 distributions
%
% [p,e_nm] = minentest(x,y,flag,nboot)
%
% Compares d-dimensional data from two samples using a measure based on
% statistical energy. The test is non-parametric, does not require binning
% and easily scales to arbitra... |
e174251e180450c26d777b9fe9787bb29975112baf80fd6062b2a0c56cd85855 | MATLAB | 4,169 | 102 | function [xyz,rmse] = dlt_reconstructbol(camPts,c)
% function [xyz,rmse] = dlt_reconstruct(camPts,c)
%
% This function reconstructs the 3D position of a coordinate based on a set
% of DLT coefficients and [u,v] pixel coordinates from 2 or more cameras
%
% Inputs:
% c - 11 DLT coefficients for all n cameras, [11,n] ar... |
4a1bd53a2e83dd1cd045772672188261ed094d4faefbbc9b14622fc3ae5beb9b | MATLAB | 4,170 | 123 | function x = VBA_spm_invBcdf(F,v,w,tol)
% Inverse Cumulative Distribution Function (CDF) of Beta distribution
% FORMAT x = spm_invBcdf(F,v,w,tol)
%
% F - CDF (lower tail p-value)
% v - Shape parameter (v>0)
% w - Shape parameter (w>0)
% x - Beta ordinates at which CDF F(x)=F
% tol - tolerance [default 10^-6]
%_... |
248df723dee0bcb844f7cf80276d4d172a8c2401774bfcf792320e877f20d10a | MATLAB | 4,172 | 111 | function [ viewinfo ] = EventVewPlot
%UNTITLED Summary of this function goes here
% Detailed explanation goes here
obj = findobj('tag','EventExplorerMaster'); FO = guidata(obj);
%Two options of current timepoint: Event Number, arbitraty timepoint
%FA/misses for DetectionReview
switch FO.viewmode
case 'timepoin... |
e984c7ec1e1393da28e85b4b334b57cf750b2153caf125434233cdf3e203c7c2 | MATLAB | 4,173 | 125 | function [dat,beta,x] = ft_preproc_polyremoval(dat, order, begsample, endsample, flag)
% FT_PREPROC_POLYREMOVAL removed an Nth order polynomal from the data
%
% Use as
% dat = ft_preproc_polyremoval(dat, order, begsample, endsample, flag)
% where
% dat data matrix (Nchans X Ntime)
% order the order o... |
eec8b624d3fb440c516e3155b14a7abdf062f8dbe8d4bf4bc5159a066d2521e8 | MATLAB | 4,173 | 100 | %% REPLAY DECODING
% Extracts spikes for each replay event and decodes it. Saves in a
% structure called repay_track. Inside each field (each track) the replay events are saved.
% Loads: extracted_replay_events, extracted_clusters and extracted_place_fields_BAYESIAN
function decoded_replay_events = replay_decoding_gro... |
27cbdc1946846c5b88bfafbd8e692c57412a4bc75c88a43b4bec8919431640e2 | MATLAB | 4,176 | 107 | function [Error]=DPARSFA_RerunWithGSR(Cfg)
% FORMAT Error]=DPARSFA_RerunWithGSR(Cfg)
% The data has been processed without global signal regression for the first pass. Now re-run it with global signal regression.
% Input:
% Cfg - the parameters for auto data processing
% Output:
% The processed data that you ... |
3cb6f48eb558660a21eedb44c384d9bd1bc5674f35480659a79f70a1376baf89 | MATLAB | 4,176 | 90 | classdef PrevAxesTargetSpec
% Value class holding both the identity and rendering data for the frozen/prev-axes frame.
% Identity fields: iMov, frm, iTgt, gtmode.
% Rendering fields: im, isrotated, xdata, ydata, A, tform, xlim, ylim, dxlim, dylim.
%
% Every PrevAxesTargetSpec in existence is fully valid: the ... |
83950bdde5cf2cbae55dcd8007110648c5743fd2a4603733c143a4af8f9e21c3 | MATLAB | 4,176 | 122 | %% GCCA_tsdata_to_mvgc
%
% Calculate conditional time-domain MVGC (multivariate Granger causality) from time series data by
% "traditional" method (as e.g. in GCCA toolbox)
%
% <matlab:open('GCCA_tsdata_to_mvgc.m') code>
%
%% Syntax
%
% F = GCCA_tsdata_to_mvgc(U,x,y,p,regmode)
%
%% Arguments
%
% See also <mvgchelp.... |
bf9ee829286d598df082b9e79c73ca51332b26a94a9d72ed80e00cd8bbccd11c | MATLAB | 4,177 | 123 | function [comod] = bz_CrossFreqMod(lfp,phaserange,amprange,varargin)
% [comod] = bz_CrossFreqMod(lfp,phaserange,amprange,flagPlot)
%
%
%This function calculates the modulation index of phase-amplitude between
%phaserange (lower frequencies) to amplitude range (higher frequencies).
%It can really take a long time if you... |
e15b64a5b58e7cd1ae7b3766e3e5336adbef3fdeb8c7c63b8e2abdda34fc37e4 | MATLAB | 4,177 | 123 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%% fit4_dipole_fitting_noadapt.m %%%
%%% Fit a dipole for the selected model and raw data. No adaptive sol. %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% general opti... |
32aefcb167dfce4ca1225ce7b45335b64532f6c544ea2865d0d4e1439ce9422c | MATLAB | 4,178 | 122 | % Author: Birgit Nierula
% nierula@cbs.mpg.de
function eeg_prepro_loop6_allBlocks(subjects, conditions, srmr_nr)
%% loop(s) 6: run ICA on pre-cleaned, sub-sampled, filtered data
% prepare data set for parfor loop
all_EEG = {};
sbj_counter = 0;
cds_matrix = zeros(9, 64);
for subject = subjects % pre-loop to load in d... |
aca8ca9ba9d7a4809460f7c21a04cadaa677b8b7c59a4796fe85fe9f35e5b744 | MATLAB | 4,178 | 127 | function [spikes,thr,index] = amp_detect(x,cfg, do_filter)
% Detect spikes with amplitude thresholding. Uses median estimation.
% Detection is done with filters set by fmin_detect and fmax_detect. Spikes
% are stored for sorting using fmin_sort and fmax_sort. This trick can
% eliminate noise in the detection but keeps ... |
83bb0c589b28cd60c778f7f94abe445f99c0dc872d1ce8f8116b8d9c6616a067 | MATLAB | 4,180 | 114 | % Script for visualizing Enrichment results
%% Visualize thresholded network matrix
% load enrichment results and corresponding IM structure
load('name of structure containing dataOut');
load('name of IM structure');
fc = load('name of fc data'); % rvals, not zvals
%fc=fc.rmat;
fc=FisherR2Z(fc.rmat);
fc=... |
d3196f3789d4a0c7afaa49066f1f83538a4aedc9de2145d109b683794349aabd | MATLAB | 4,180 | 156 | function h_analyzeThreshOutline3(handles)
global h_img3;
% jbm/manualthreshold/072715
[currentInd, handles, currentStruct, currentStructName] = h_getCurrendInd3(handles);
dispAxes = get(handles.viewingAxisControl,'Value');
if dispAxes~=1
disp('viewing axis has to be x-y!');
return;
else
thr... |
670492d6251467cd60000466e1ef46e868121a208ae6bc7e21f3908cbeb4aad5 | MATLAB | 4,181 | 123 | function [ferns,hsPr] = fernsClfChangeFernDepth( data, hs, ferns, Snew, varargin )
% Train random fern classifier.
%
% See "Fast Keypoint Recognition in Ten Lines of Code" by Mustafa Ozuysal,
% Pascal Fua and Vincent Lepetit, CVPR07.
%
% Dimensions:
% M - number ferns
% S - fern depth
% F - number features
... |
b6048155e5947ea85a5cf03145c8fbdd2c25752940d0af8ad8b073e7f5158f75 | MATLAB | 4,181 | 134 | function He = lme_Hessian(X,Zcols,W,CBhat,L,phi,re,ni)
% He = lme_Hessian(X,Zcols,W,CBhat,L,phi,re,ni)
%
% Hessian matrix of the restricted log-likelihood.
%
% Input
% X: Ordered design Matrix (according to time for each subject).
% Zcols: Vector with the indices of the colums of X that will be considered
% as random ... |
dc6f97990b05fe9db22bdee3875324bfd33ea2304c28824ffe3c33364b4af74c | MATLAB | 4,181 | 89 | function parallel_calculate_FIR_PPIs(stat_path,exp_folder,N,N_ROIs)
% ========================================================================
% Ruslan Masharipov, October, 2023
% email: ruslan.s.masharipov@gmail.com
% ========================================================================
tic
for subji = 1:N
fo... |
930799df10b1b142f44c76aed81064d0b1762567f8a2f9ff3416c93a112a43e7 | MATLAB | 4,182 | 82 | %%
% This is the code for copying data from ELP bids
% written by Jin Wang 5/27/2020
% This will have an output txt file to show the list of subjects who have more than one T1weighted images multiple_T1w_subjects.txt file
% You should use copy_repeated_anat.m to re-evaluate the best T1 for each
% subject to use for lat... |
440e7bffbeac27f69721931cd1f52a29172c10d06a732325a90b6b3cab8951ef | MATLAB | 4,183 | 178 | function ICout=NoCamp_PCA_ICA(Img2)
% ********************************************************************** %
% MAIN - PCA ICA FOR CELLS ACTIVITY DETECTION
% ********************************************************************** %
% 1. Load data
% 2. Pre-processing
% 3. Define parameters for PCA - ICA
% 4. PCA
% 5.... |
4abc113e5a6810c6eb321af4509dee8048f4b8bc867233d97799c550d12aa76b | MATLAB | 4,183 | 177 | function [star_st,Header]=tom_starread(filename,outputFlavour,NumOfLines2chk)
% tom_starread read star files
%
% star_st=tom_starread(filename,outputFlavour)
%
% PARAMETERS
%
% INPUT
% filename filename of the star file
% outputFlavour ('struct') or 'matrix'
% NumOfLines2chk (10)... |
8e087bd2cecf56eff9392bd2c00170faf7ba3c3c16596c06f35b1b58611a047b | MATLAB | 4,183 | 126 | % FT_PREAMBLE_DEBUG is a helper script for debugging problems with FieldTrip
% functions. It installs an "onCleanup" function that gets executed if an error is
% detected, allowing to automatically save the input data and configuration to disk.
%
% In case of an error, the DEBUGCLEANUP function does the remainder of th... |
1c80952267ecd73c537a17be97a5abc4d10044724e40d7a7407ba2d3ed44d4f5 | MATLAB | 4,184 | 115 | function [handles] = VBA_projectMoG(posterior,out,y)
% display clustering results on 2D data eigenspace
% function [handles] = plotResults(y,xi,eta,F,theta,K_opt,options)
% This function projects the MoG components onto the first two
% eigencomponents of the data. This 2D eigenspace is then tesselated
% according to wh... |
d9b0f1affae75242e5533555f65a895f3a6e6f9598e622a8108b57f092b5c1d7 | MATLAB | 4,184 | 108 | function [mappedX, mapping] = kernel_pca(X, no_dims, varargin)
%KERNEL_PCA Perform the kernel PCA algorithm
%
% [mappedX, mapping] = kernel_pca(X, no_dims)
% [mappedX, mapping] = kernel_pca(X, no_dims, kernel)
% [mappedX, mapping] = kernel_pca(X, no_dims, kernel, param1)
% [mappedX, mapping] = kernel_pca(X, no_... |
fafeb12a9e9c3e7cd13ce5773a7c19010da3fb97832ebd692641bb7e48a355f6 | MATLAB | 4,184 | 129 | function mappedX = hlle(X, no_dims, k, eig_impl)
%HLLE Runs the Hessian LLE algorithm
%
% mappedX = hlle(X, no_dims, k, eig_impl)
%
% Runs the Hessian LLE algorithm on dataset X to reduce its dimensionality
% to no_dims. The variable k specifies the number of nearest negihbors that
% is used.
%
%
% This f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.