sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
e50bd43592138cf50e0623fbf03a78188739d9482931fc9b0e6110002119f2ef | MATLAB | 1,374 | 43 | % mglTextDraw.m
%
% $Id$
% usage: mglTextDraw(str,pos,hAlignment,vAlignment)
% by: justin gardner
% date: 05/13/06
% copyright: (c) 2006 Justin Gardner, Jonas Larsson (GPL see mgl/COPYING)
% purpose: wrapper around mglText and mglBltTexture to
% draw some text on the string. If... |
123547f4b84b7c8fd9cd1a39887e79b16e5e0d31f2db97e4064124be508af3e2 | MATLAB | 1,375 | 71 | clear all
load('./data/recid=1/deconved.mat') %load sample recording
load('./validpixels.mat') %contains pixel locations
%%
clf
%we've removed periods of motion to reduce file size.
%Each cell is a segement of the original recording post filtering.
temp = cc{1};
%get spikes
spikes_threshold = 0;
dte... |
2220de6caf76ad35bea08a8e322d374b4111ab9524a5c6ab0f5c42586832ba04 | MATLAB | 1,375 | 34 | clear
%load F1s.mat
filenames = {'CaMKII_120_TMT Exposure_5fps_part11','CaMKII_120_TMT Exposure_5fps_part12','CaMKII_120_TMT Exposure_5fps_part21','CaMKII_120_TMT Exposure_5fps_part22'};
radii = [10:2:18];
SNRs = [15:4:31];
dataset = zeros(length(filenames),length(radii),length(SNRs));
parfor n = 1:(length(filenames)*... |
870c6f60d10229d578ff0dce5d12ba1370798acf3f69302afc656de6c2d12b7b | MATLAB | 1,375 | 39 | function [r] = ml_core_all_pixel_rotated_pixel_cross_correlation_180deg(T1, T2, varargin)
p = inputParser;
p.CaseSensitive = false;
checkmatrix = @(x) isnumeric(x);
addRequired(p, 'T1', checkmatrix);
addRequired(p, 'T2', checkmatrix);
% By default use all of the matrix entries
checkwei... |
f3e63cc1798e166f9fa88d55286525b38aaad85a767a79f2c37d0ffd35dc8d39 | MATLAB | 1,376 | 46 | function fix_ZoomInOnSeq(handles,seq)
% set plot axes to show a particular sequence number
% splintered from fixerrorsgui 6/21/12 JAB
if strcmpi(handles.zoommode,'whole arena'),
return;
end
if exist('seq','var'),
handles.seq = seq;
end
BORDER = round(min(handles.nr,handles.nc)/30);
frames = max(min(handles.seq.... |
6b618c0b1c3b49bb939aa926437485508dcf76ef6f2876dbaaebe33471546ac1 | MATLAB | 1,377 | 42 | function [dat] = ft_preproc_derivative(dat, order)
% FT_PREPROC_DERIVATIVE computes the temporal Nth order derivative of the
% data
%
% Use as
% [dat] = ft_preproc_derivative(dat, order)
% where
% dat data matrix (Nchans X Ntime)
% order number representing the Nth derivative (default = 1)
%
% See al... |
7db97202b6d073048f3f4544a706d49c6ff660839c8f2ebf6bf12f44cfbb59e9 | MATLAB | 1,377 | 34 | % Marc Normandin, Muzzio Lab, Psychological & Brain Sciences, University of Iowa, 2024
function [BestAligned] = bestaligned_add_registered_cell_names(BestAligned, CellRegTable)
if isempty(CellRegTable)
error('There is no cellreg table to retrieve names from.\n');
end
% Make a map from session ... |
c13eff2be85ae5e8d349cbe8da717d1883c2b72530a1d5ba52591a851843e046 | MATLAB | 1,377 | 54 | function write_vtk(fn, pnt, tri)
% WRITE_VTK writes a triangulation to a VTK (Visualisation ToolKit) format file.
% Supported are triangles, tetraheders and hexaheders.
%
% Use as
% write_vtk(filename, pnt, tri)
%
% See also READ_VTK, WRITE_PLY
% Copyright (C) 2002, Robert Oostenveld
%
% $Id: write_vtk.m 8962 2013-... |
ca6e74bfbc70d968322702a908b2546ba645e7925dbf27f73089d8220999b61e | MATLAB | 1,377 | 53 | function results = vl_test_binsum(varargin)
% VL_TEST_BINSUM
vl_test_init ;
function test_three_args()
vl_assert_almost_equal(...
vl_binsum([0 0], 1, 2), [0 1]) ;
vl_assert_almost_equal(...
vl_binsum([1 7], -1, 1), [0 7]) ;
vl_assert_almost_equal(...
vl_binsum([1 7], -1, [1 2 2 2 2 2 2 2]), [0 0]) ;
function te... |
532eeae288e269e2c3855c0a6075973a1ab2f693d0c2a828db2e6733ab2bc901 | MATLAB | 1,378 | 58 | function J=vl_rgb2xyz(I,ws)
% VL_RGB2XYZ Convert RGB color space to XYZ
% J=VL_RGB2XYZ(I) converts the CIE RGB image I to the image J in
% CIE XYZ format. CIE RGB has a white point of R=G=B=1.0
%
% VL_RGB2XYZ(I,WS) uses the specified RGB working space WS. The
% function supports the following RGB working space... |
a9b29f790a80b76e269a62b234ea08c21625b45d3491265fcfcd96c816b2ef38 | MATLAB | 1,378 | 55 | function zz = aedes_trendest(z,alpha);
% AEDES_TRENDEST - Estimate trends from signal using smoothness priors
%
% Synopsis:
% function zz = aedes_trendest(z,alpha)
%
% Description:
% Estimate trend from signal z using smoothness priors. t is the time
% scale for z. alpha is the smoothing parameter.
%
... |
c1a1ad85bea47ec8c325379787c5d2dd9bc9c9fd69b64bf79d7733575a8a5eb1 | MATLAB | 1,379 | 34 | function ret=SONSetTextMarkChan(fh, chan, sPhyCh, bufsize,...
comment, chantitle, rate, units, points)
% SONSETTEXTMARKCHAN creates a TEXTMARK channel
% FH = SON file handle
% CHAN = the channel number for the new channel
% SPHYCH = the physical cha... |
1a09f930df95b3e9a7e8679e96b5af4dc76124b6153ee194db5f36fbc5863539 | MATLAB | 1,380 | 51 | function vl_demo_kdtree_ann
% VL_DEMO_KDTREE
% Demonstrates the use of a kd-tree for approximate nearest neighbor
% (ANN) queries.
% Copyright (C) 2007-12 Andrea Vedaldi and Brian Fulkerson.
% All rights reserved.
%
% This file is part of the VLFeat library and is made available under
% the terms of the BSD licens... |
5f8f057fb0118b06e4d505ebb826fb37ba1eaf9bc0664270801b104b5ab3264c | MATLAB | 1,380 | 48 | % f_FilterIIR.m
%
% Copyright (C) 2015, Miguel Navarrete
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation, either version 3 of the License, or
% (at your option) any later ve... |
8ba37481befd84f802ed754388137d096470d995d849343f7a729a902f17d454 | MATLAB | 1,380 | 43 |
%# -*- texinfo -*-
%# @deftypefn {Function File} {} empirical_cdf (@var{x}, @var{data})
%# For each element of @var{x}, compute the cumulative distribution
%# function (CDF) at @var{x} of the empirical distribution obtained from
%# the univariate sample @var{data}.
%# @end deftypefn
%# Author: KH <Kurt.Hornik@wu-wie... |
89d59b2e21f34f1e4b82a2e5edf10c745a13d63c596143a84303700578dd4407 | MATLAB | 1,381 | 40 | function [psth,psth_mean, sem] = psth_wave2(trigger_times,interval,values, ...
basal_time,odor_time,control_from,control_to,offset,z_score)
N = length(values);
times = 0:interval:(N-1)*interval;
times = times';
val1 = cell(1,length(trigger_times));
val2 = cell(1,length(trigger_times));
for ... |
f041c1d99e71674061507d1abd22760f33a88a87d6735e08337d909afc576a9e | MATLAB | 1,381 | 40 | % findDiscSizesLoom.m
%
% Function that takes in r/v (ratio of stimulus radius to approach speed),
% minimum disc size, maximum disc size, and size of time steps to
% return the disc's size over time.
% For generating position function to apply to disc patterns to generate
% looming stimulus on G3 visual panels.
%
... |
4cfb2f48ee51fd78a317e87a40261488369112f9f04d3b5779bf2827f6e0f169 | MATLAB | 1,382 | 39 | function [ pow,f,rpow,lpow ]=aux_perceive_fft( obj, data, fs, tw )
% Auxiliar method for ECG artifact filtering
%
% Syntax:
% [ pow,f,rpow,lpow ]= AUX_PERCEIVE_FFT( obj, data, fs, tw );
%
% Input parameters:
% * obj - object containg data
% * data - data from json file(s)
% * fs - sampling frequency
% ... |
0a84fdc03695c4354cd57681036dab54f580d024b9810799b64457c75fbcc5d6 | MATLAB | 1,383 | 54 | function s=hierarchicalSort(C)
% hierarchicalSort Sort coclassification matrix based on average-linkage clustering
%
% Syntax
%__________________________________________________________________________
%
% s=hierarchicalSort(C)
%
% Description
%_________________________________________________________________________... |
881bfa21cb189c856c92cd057ecef335ff5d6797de9542490d6ccc44fb14d6c3 | MATLAB | 1,383 | 49 | %% Assign Detections to Tracks
function [assignments,unassignedTracks,unassignedDetections] = ...
assignDetection2(tracks,DT,speedThresh)
% assign detections
nTracks = length(tracks);
nDetections = size(DT,1);
% Compute the cost of assigning each detection to each track.
% *this cost function will ... |
00fe14d3937ddf9835a68ff4652d6fa0d215def62f94ab2ba1668c34fe189d4b | MATLAB | 1,384 | 49 | function results = vl_test_whistc(varargin)
% VL_TEST_WHISTC
vl_test_init ;
function test_acc()
x = ones(1, 10) ;
e = 1 ;
o = 1:10 ;
vl_assert_equal(vl_whistc(x, o, e), 55) ;
function test_basic()
x = 1:10 ;
e = 1:10 ;
o = ones(1, 10) ;
vl_assert_equal(histc(x, e), vl_whistc(x, o, e)) ;
x = linspace(-1,11,100) ;
o =... |
a8545c8107316034438e8f5f934303c378d182159140358ade345ed767043696 | MATLAB | 1,384 | 36 | function h_out = make_calcium_impulse(ca_scale,varargin)
% h_out = make_calcium_impulse(ca_scale, dt)
%
% This function generates a temporal calcium impulse response. It takes the
% time constants provided in ca_scale and creates the characteristic
% polynomial to be used with MATLAB's impulse function, which simulat... |
2d357f6c45c1b1bbad180f3dbb83e52f372406d88d2d7da6b85fc319bd4e5409 | MATLAB | 1,385 | 35 | function[h] = fcn_quick_mat_plot(mat, optional_title_string, optional_col_names, optional_row_names);
% This function plots a matrix as heatmap, with optional title and X-axis and/or Y-axis labels
%
% INPUTS:
% mat: a N-by-M array (double); example: rand(10,2);
% optional_title_string: a string for the title; Opti... |
6e827250e20f8b09053bf98be23a1eeb5ef2409f697e3f6d8c3a9dfae4dca02c | MATLAB | 1,389 | 35 | function [ns_RESULT, nsAnalogInfo] = ns_GetAnalogInfo(hFile, EntityID);
%ns_GetAnalogInfo Retrieves information specific to analog entities
%
% Usage:
% [ns_RESULT, nsAnalogInfo] = ns_GetAnalogInfo(hFile, EntityID)
%
% Description:
% Returns information about the Analog Entity associated with
% ... |
b0fb0ea327a452bf65aea745d0f420cf6e5603e258ea4d39b1e6a4dfca3d0d5a | MATLAB | 1,389 | 59 | function ShowBlobs(blobs, numRow, numCol, image, minSize, imNames)
% PlotBlobs(blobs, numRow, numCol, image, minSize) plots all blobs in numCol columns
if nargin == 4
minSize = 0;
end
doNames = exist('imNames', 'var');
if doNames
if ~iscell(imNames)
imageNamesC = cell(size(imNames));
... |
38336a3eb6d0a8cfc2f14b67a4260208751a4a5c7171526c8fcf29a9297458e0 | MATLAB | 1,390 | 36 | function T=transitivity_bd(A)
%TRANSITIVITY_BD Transitivity
%
% T = transitivity_bd(A);
%
% Transitivity is the ratio of 'triangles to triplets' in the network.
% (A classical version of the clustering coefficient).
%
% Input: A binary directed connection matrix
%
% Output: T transitiv... |
a72ef0a546506a0ee85ba579693c5432ad1220bfd3da41a05419494bb4494548 | MATLAB | 1,392 | 53 | function mu=localPermModel(S)
% localPermModel Compute co-classification probabilities using local Permutation Model
%
% Syntax
%__________________________________________________________________________
%
% mu=localPermModel(S)
%
%
% Description
%______________________________________________________________________... |
39b0faa49367accf47abc5133afdbb624d68ceb822d619bdddd6c506717f25bb | MATLAB | 1,393 | 47 | function [boundmap, perim] = mcmcGetSuperpixelBoundaries_fast(imsegs)
% boundmap{nimages}{nseg, nseg}(npixidx) - boundaries between pairs of segs
% perim{nimages}(nseg, nseg) - number of pixels in boundary
% nimages == 1, boundmap{nseg, nseg}(npixidx), perim(nseg, nseg)
for f = 1:numel(imsegs)
nseg = i... |
04b7d8c1852d1b0e860c2844bbcec4581182b018d7184a4aea16c371dfd7fba8 | MATLAB | 1,394 | 49 | % mglMetalShutdown: Shutdown one or more running mglMetal processes
%
% $Id$
% usage: tf = mglMetalShutdown(socketInfo)
% by: justin gardner
% date: 09/27/2021
% copyright: (c) 2021 Justin Gardner (GPL see mgl/COPYING)
% purpose: Shutsdown one or more running mglMetal processes. Returns
% ... |
1eba618ad742f8d08b25b3f083d866febcc621b3ce353f5bb36cd6a5f1e4537a | MATLAB | 1,397 | 33 | function [fluor, spikes] = sim_fluor_UFARSA(firing_rate,frame_rate,tau, std_noise_sim, nFrames, seed)
% [fluor, spikes] = sim_fluor_UFARSA(firing_rate,frame_rate,tau, std_noise_sim, nFrames, seed)
%
% This function simulates a Poisson spike train and its corresponding fluorescence trace.
%
% INPUT:
% firing_... |
b11fc1542327af790257674fc9ac57651137a6b4191a2abf27b4e64a72d0dead | MATLAB | 1,399 | 37 | addpath(genpath('.'))
addpath(genpath(fullfile('..','ANE')))
%%
% folder of the GT Masks
dir_video=fullfile('E:','data_CNMFE');
% name of the videos
list_Exp_ID={'blood_vessel_10Hz','PFC4_15Hz','bma22_epm','CaMKII_120_TMT Exposure_5fps'};
vid=4;
Exp_ID = list_Exp_ID{vid};
DirSave = ['Results_',Exp_ID];
dir_refine = fu... |
b454432753b5b0b8b9adf968e43909d66e27e6a87b6de64b2d73bc4885ec4947 | MATLAB | 1,399 | 39 | function[]=SONUpgradeToVersion6(fid)
% Obsolete function
% Upgrades SON file ADC and ADCMark data to SON version 6.
% File header date and time fields are not upgraded
% The file header creator field is set to 'MAT-TO-6' but only if it is '00000000' to begin with.
% IT IS RECOMMENDED THAT YOU BACKUP FILES BEFORE USING... |
0d07564a4f94f97696958d0466f5d473c54c823e75f323353c62066eabefb182 | MATLAB | 1,400 | 60 | function [ GA ] = mygradient( A, dim, flag )
% Simple 3D gradient function using difference that satisfy the matrix
% transpose operation
% [ GA ] = mygradient( A, dim, flag )
% Authors: Xu Li
% Affiliation: Radiology @ JHU
% Email address: xuli@mri.jhu.edu
% ---------------------------------------
if nargin < 2
d... |
1be88839af126c467229ff64d64bf3175dd7ca90f9b5272f838e939e2c3bb952 | MATLAB | 1,400 | 43 | function value = loadvar(filename, varname)
% LOADVAR is a helper function for cfg.inputfile
% Copyright (C) 2010, Robert Oostenveld
%
% $Id: loadvar.m 10541 2015-07-15 16:49:37Z roboos $
assert(ischar(filename), 'file name should be a string');
if nargin<2
fprintf('reading variable from file ''%s''\n', filename)... |
fae5ff62d63a374fe397ea19f680e1d101c2b6148d51c7cacae9e36b22d45dea | MATLAB | 1,400 | 47 | function [cfgs] = exhaustStaggering(probe, modulesToStagger, staggerAmount)
%EXHAUSTSTAGGERING Exhaustively analyze staggering a probe
% Given a probe and a staggering vector, this script will shift selected
% modules by the staggering amount and re-analyze the probe. This is done
% for every shift inside stagger... |
18d74ec5ce23fde06f120871a58c68fec9c0534c375fca32bd13a8281708fa80 | MATLAB | 1,401 | 45 | function [Erange,eta,Eshort,fs] = erange(CIJ)
%ERANGE Shortcuts
%
% [Erange,eta,Eshort,fs] = erange(CIJ);
%
% Shorcuts are central edges which significantly reduce the
% characteristic path length in the network.
%
% Input: CIJ, binary directed connection matrix
%
% Outputs: Erange, ra... |
44be2de6d1073c0ad92a26b60be1d16f4e1f1fcef59d51a693dccf9e8e0f23e0 | MATLAB | 1,401 | 44 | function lpp_plot_boxplot(result,ylim,ytick,yticklabel)
%LPP_PLOT_BOXPLOT 이 함수의 요약 설명 위치
% 자세한 설명 위치
cols = [0.8627 0.3216 0.4863
0.9216 0.6078 0.5608];
cols_dot = cols;
cols_line = [cols(1,:)+.3;cols(2,:)+.2];
cols_line(cols_line>1)=1;
figure;
boxplot_wani_2016(result, 'color', repmat(cols(1,:),3,... |
8c55a46315f3cb346ccb336bdf5d452b1fc73d03cda7c3e6ce427d4e5b575f41 | MATLAB | 1,401 | 60 | % mglFixationCross.m
%
% $Id$
% usage: mglFixationCross([width], [linewidth], [color], [origin]);
% mglFixationCross( params )
% params(1)=width
% params(2)=linewidth
% params(3:5)=color
% params(6:7)=origin
% by: jonas larsson
% ... |
c2b90bd9a21fe13f75f6f3404696c96d2cbeb403beef893ecb35ac5918e50946 | MATLAB | 1,401 | 43 | function [cx, cy] = ml_util_transform_px_to_cm(tx, ty, length_short_cm, length_long_cm)
[r] = ml_util_minimum_bounding_box(tx, ty);
[qx, qy] = ml_util_minimum_bounding_box_map(r, tx, ty);
[rx, ry] = ml_util_minimum_bounding_box_map(r, r(:,1), r(:,2));
% Can only have two different lengths for the edges... |
7eee079f22c94c1f6c77279c025d8447eb36d30d4f022d941cc4c730e483626e | MATLAB | 1,402 | 43 | function dspec = addCovariateTiming(dspec, covLabel, stimLabel, desc, varargin)
% Add a timing covariate based on the stimLabel.
% dspec = addCovariateTiming(dspec, covLabel, stimLabel, desc, basisStruct, offset, cond, plotOpts);
if ~isstruct(dspec)
error('First argument must be a design specification structure');... |
e27068181a45976afe035fbdcc77d99ce8e30b6ec6dee11b04ec8dafba9c8887 | MATLAB | 1,402 | 57 | function data = fmri_global_norm(data)
% FMRI_GLOBAL_NORM - Globally normalize fMRI data
%
%
% Synopsis:
%
% Description:
%
% Examples:
%
% See also:
%
% This function is a part of Aedes - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-Pekka.Niskanen@uku.fi>... |
ccd05f8de03989a560b83c4fb9c2cda6353c45b3aaec1b0dde924309f7e82d8f | MATLAB | 1,403 | 64 | %
% Aggregate plot of all statistics over time.
%
% PARAMETERS
% $NETWORK
% $TYPE "full" or "split"
% $STATISTICS Space-separated list of statistics
%
% INPUT
% dat/statistic_time.$TYPE.$STATISTIC.$NETWORK
% for each $STATISTICS in $STATISTICS
%
% OUTPUT
% plot/statistics_time.[a].$TYPE.$NETWORK.eps
%
network = g... |
f7f47023d463dae9c2d6dfa5370793232ef23986becc4e1cabe49f89592356a7 | MATLAB | 1,403 | 42 | function y = istrue(x)
% ISTRUE ensures that a true/false input argument like "yes", "true"
% or "on" is converted into a boolean
% Copyright (C) 2009-2012, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% FieldTrip is free s... |
f9d10904011b773167d798287fd98d35bfc033987dd57d8c145e7b2392ee3563 | MATLAB | 1,403 | 39 | function [H] = Entropy_Array(X, varargin)
%% This function takes an array and returns the Shannon Entropy of an array.
% A probability density function is derived from the array.
%
% By default the program selects a number of bins proportional to the square
% root of the number of points in the array, however the ... |
86a4b5bbd07d2df2fcf26ca28c533dd1573d56c03e2fb7d9af5a4d2e237fe342 | MATLAB | 1,404 | 45 | function c = appendevent(a, b)
% APPENDEVENT
% Copyright (C) 2008, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% FieldTrip is free software: you can redistribute it and/or modify
% it under the terms of the GNU General ... |
ab2f2d291a1ec725486aabe6107d23572c2b0c225cad3f8781120d38cdfdb179 | MATLAB | 1,405 | 38 | function ret=SONSetRealChan(fh, chan, sPhyCh, dvd, bufsize,...
comment, chantitle, scale, offset, units)
% SONSETREALCHAN creates real wave channel
%
% RET=SONSETREALCHAN(FH, CHAN, SPHYCH, DVD, BUFSIZE,...
% COMMENT, CHANTITLE, SCALE, OFFSET, UNITS)
%
% ... |
addf2ed730bd5c6f4ccaf9a9bbff707982a2f9f8fbd956ed3769339eb1fecc65 | MATLAB | 1,407 | 56 | function lab_img = slic_rgb2Lab(rgb_img)
% rgb to XYZ
R = double(rgb_img(:, :, 1));
G = double(rgb_img(:, :, 2));
B = double(rgb_img(:, :, 3));
R = R / 255;
G = G / 255;
B = B / 255;
t = (R <= 0.04045); s = (R > 0.045);
R(t) = R(t) / 12.92;
R(s) = ((R(s) + 0.055) / 1.055) .^ 2.4;
t = (G <= 0.04045); ... |
67e34f59768bd3b1c53f0b1d01ea022cfbe348e5ebd860a83bf35791a5cb5db2 | MATLAB | 1,408 | 41 | function [PhaseIn] = phase_unwrap_template(PhaseIn,TEs,TemplateEcho)
%[PhaseIn] = phase_unwrap_template(PhaseIn,TemplateEcho)
% unwrap phase with template unwrapping
% Reference: ROMEO paper, Dymerska et al, 2020, MRM
%
% Xu Li
% Affiliation: Radiology @ JHU - Kirby Center
% Contact via xuli@mri.jhu.edu
nEchoes =... |
c3826e235ba9c493f72ed114ba2922e897d017559d90a6a9b3911d7c67064386 | MATLAB | 1,408 | 35 | function C=clustering_coef_bd(A)
%CLUSTERING_COEF_BD Clustering coefficient
%
% C = clustering_coef_bd(A);
%
% The clustering coefficient is the fraction of triangles around a node
% (equiv. the fraction of node’s neighbors that neighbors of each other).
%
% Input: A, binary directed connection ma... |
408210d8488a0c86cee59ad547673140bf9237cd52a4dc34a8b5f3068eb295f9 | MATLAB | 1,409 | 44 | function plotBlinkData(obj, startIdx, endIdx)
assert(isa(obj, 'Edf2Mat'), 'Edf2Mat:plot', ...
'Only objects of type Edf2Mat can be plotted!');
if ~exist('startIdx', 'var')
startIdx = 1;
end
if ~exist('endIdx', 'var')
endIdx = numel(obj.Samples.posX);
end
r... |
f32ad3f2e35e863bb0c56a9fda76a0ff595fcaf87176ccd2593fef993f94c3d3 | MATLAB | 1,409 | 39 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
8cbfc8db04635468b1c3afe14afb55e057d91468281ca0ecfa4aa71f9a422652 | MATLAB | 1,410 | 43 | function tree = flush(tree,uid)
% XMLTREE/FLUSH Flush (Clear a subtree given its UID)
%
% tree - XMLTree object
% uid - array of UID's of subtrees to be cleared
% Default is root
%__________________________________________________________________________
%
% Clear a subtree given its UID (remove... |
d7b25dac50c0a48298ec55a1faa49d482401e158b603611c449c38c4c68722d6 | MATLAB | 1,410 | 57 | function lab= convertLab(lab,nlab)
lab=char(lab)
for i=1:nlab
ilab=lab(i,:);
%ilab(ilab=='_')=[];
ind= strfind(ilab,'FC_');
ilab(ind:ind+2)=[];
ind= strfind(ilab,'norm');
ilab(ind:ind+3)=[];
ind= strfind(ilab,'_DMN');
ilab(ind:ind+4)=[];
ind= strfind(ilab,'DMN_');
ilab(ind:... |
33eb152cc6d03c795dbbe4c28bdccf4566decc1247b805e102028f8f9977cdbc | MATLAB | 1,411 | 24 | function [do_recompute, output_folder_path] = ...
determine_whether_to_recompute_feature_type(feature_type_string, folder_name_template, parent_folder_path)
% Try to find a folder matching folder_name_template within
% parent_folder_path. On return, do_recompute is true iff exactly one such
% folde... |
7cc3034e1f24b55ceaa66699c7d61204b825b8cdfaac61273f29dc404d833f25 | MATLAB | 1,411 | 46 | function[out,timeunits]=SONTicksToSeconds(fid, in, varargin)
% SONTICKSTOSECONDS scales timestamp vector IN
%
% [OUT,{ TIMEUNITS}]= SONTICKSTOSECONDS(FID, IN{, OPTIONS})
% FID is the matlab file handle, IN is a vector of timestamps from the file.
%
% OPTIONS if present, may contain:
% 'Ticks' : Returns the ti... |
b907b2ba09074fdbdf9abc258c15500f5d4402edae4c9d49ae1768c8969e2734 | MATLAB | 1,411 | 43 | function conn = nodesToConn(nodes)
% conn = nodesToConn(nodes)
%
% Function that generates the connection structure from the node structure
% for blood vessels. The input is:
%
% - nodes - struct array containing blood vessel node information
% .num - identifying number
% .root - root node, if i... |
bd64b650318e25134e90becfb34a1f8b154a38b21167a132f6f234f38441a0d3 | MATLAB | 1,411 | 50 | % VL_DEMO_SIFT_MATCH Demo: SIFT: basic matching
pfx = fullfile(vl_root,'figures','demo') ;
randn('state',0) ;
rand('state',0) ;
figure(1) ; clf ;
% --------------------------------------------------------------------
% Create image pair
% ---------------------------... |
1315422fb74f1a088447202da1f5021025005a8059547772ee214f2ab7c1f3f1 | MATLAB | 1,413 | 41 | %{
Copyright (C) Cambridge Electronic Design Limited 2014
Author: James Thompson
Web: www.ced.co.uk email: james@ced.co.uk, softhelp@ced.co.uk
This file is part of CEDS64ML, a MATLAB interface to the SON64 library.
CEDS64ML is free software: you can redistribute it and/or modify
it under the t... |
e5ce7c1a09d494dd0d57b5a63059c354615d1bb7679af84df88d6e7e77569ade | MATLAB | 1,413 | 37 | % Author: Zachary Chiang, Buenrostro Lab, Harvard University
% Performs an initial color correction between IGS cycles and saves the
% transformation matrix to speed up later iterations(see also: color_correct_heuristic.m)
function[corr_channel pre_corr max_corr tform_new] = color_correct_initial(stackA, stackB, chan... |
5cab90253bcd3bc0a9ee9ee452ae743c53717e3f34975ec05d6106e97d43a239 | MATLAB | 1,414 | 34 | function writeJAABA(trkname,moviefilename,trk,feat,calib,outdir, ...
save_JAABA_trk_mat_file, save_JAABA_perframe_features, save_JAABA_movie_link_or_copy)
if nargin < 3
D = load(trkname); trk = D.trk;
end
if nargin < 4
featname = [trkname(1:end-10) '-feat.mat'];
D... |
766f28bff0b96d5bcf8eb5e0b5b27ed63a8e3569a018c344b934e049084acd79 | MATLAB | 1,414 | 53 | function idx = identify_ternary_axis( name )
%identify_ternary_axis ternary axis interpreter
%
% returns the correct axis index for different names. Ternary axis numbers
% 1,2,3 correspond to string inputs left/bottom/right or l/b/r. bottom=bot.
% Determine if name is a string
if ( ischar(name) )
... |
9c1e7122dade2657debef112d77efccdb672445029f3e2441543e7a1bda3c829 | MATLAB | 1,414 | 67 | function filter_fmri_data()
if nargin==0
% Prompt for the input file
[fname,fpath,findex] = uigetfile({'*.nii','4D NIfTI Files (*.nii)';...
'*.*','All Files (*.*)'},'Select 4D NIfTI file');
if isequal(fname,0)
% Canceled
return
end
infile = fullfile(fpath,fname);
end
if nargin==0
% Prompt for the outpu... |
a4dc344f4b89b74855ec985f0592109049da7203aa1a965bf49b2ea86f9285d6 | MATLAB | 1,414 | 56 | function tune = tuning(xmatR, elec, unit)
% computes tuning of Y from xmat, lumping along X
% Oct 2016, ehud.
%
globals;
[Ny Nx] = size(xmatR); % N of bins. used for scaling below.
% compute tuning
binval = nanmean(xmatR,2);
if 0
switch cell2mat(VarList(1)),
case {'nose.o'}, % circular
... |
6087af49b1f309e1cb3b2d3c6952e71ca526df8a1554de2cb0205041235416cc | MATLAB | 1,415 | 60 | % mglFixationCross.m
%
% $Id$
% usage: mglFixationCross([width], [linewidth], [color], [origin]);
% mglFixationCross( params )
% params(1)=width
% params(2)=linewidth
% params(3:5)=color
% params(6:7)=origin
% by: jonas larsson
% ... |
bf0d12dd9128bda4a6a56e242656918023e47b0eb5c9b18d4c4fa1bb9d3986d3 | MATLAB | 1,415 | 29 | % Semi-automatically label neurons from the full videos of CNMF-E dataset.
% We labeld the full videos (https://doi.org/10.5061/dryad.kr17k) stored in fullfile('E:','data_CNMFE').
% We cropped the full videos to quarters later after this pipeline.
%% Initial manual drawing
% Use an initial drawing GUI to draw masks by... |
6eaf11c3d5b5a12e4b47e930308ecc7b530c8df06d024d143b1e9f0e95656c00 | MATLAB | 1,416 | 42 | function varargout = spm_get_defaults(defstr, varargin)
% Get/set the defaults values associated with an identifier
% FORMAT defaults = spm_get_defaults
% Return the global "defaults" variable defined in spm_defaults.m.
%
% FORMAT defval = spm_get_defaults(defstr)
% Return the defaults value associated with identifier ... |
f51c9ef9099df228a2ab30fe4f1a162e267bd16106361b2b6552c62830a72a88 | MATLAB | 1,416 | 53 | whichParam = 'stepAEPX';
whichPhase = 'stance';
disp('Select output files from saveLegStepParamCond_bouts()');
[outputFNames, outputPath] = uigetfile('*.mat', ...
'Select cond_bouts files', datDir, 'MultiSelect', 'on');
numCond = length(outputFNames);
paramVals = {};
for i = 1:numCond
... |
0253637a3c18fd4eb46af6c4503d48a018d06de5e74a8ab7a9f820b12f742f33 | MATLAB | 1,417 | 48 | % this script create a 3-D scatter plot showing different pattern of the
% dynamics, including ON-ON, OFF-ON, OFF-OFF and ON-OFF
% 3 dimensions are: DeltaE (x), DeltaI (y), and Isens(z)
rootFolder = "figure_40_diff/";
% ON-ON
data = readFilename(rootFolder+"asAllCriteria/*_*_*_*.png",'%f_%f_%f_%f');
data( all(~data,2),... |
6cbc83000d2574b32bd1c320fc8083326daf6e6cedb4fe66171a02c12d07b7b4 | MATLAB | 1,418 | 46 | % script to set common parameters for motor cortex RNN model
rng('default')
networkID = 'SOC_Network_20211006T143906';
load(networkID);
%% initialise inputs
% stepped inputs driving movement
% parameters of the ramp input - pars.duration sets length of ramp rise
pars.duration = [1000,2000]; % time-... |
895fc708a503d190a6484068c2cc96267975d251c5aba8881888035d063f78dd | MATLAB | 1,418 | 45 | function err=SONSetEventChan(fh, chan, PhyCh, bufsize, comment, title, rate, kind)
% SONSETEVENTCHAN sets up a new event or marker channel
%
% ERR=SONSETEVENTCHAN(FH, CHAN, PHYCH, BUFSZ, COMMENT, TITLE, RATE, KIND)
% INPUTS: FH the SON file handle
% CHAN the channel number
% PHYCH the physical ch... |
ae24e92f6d04fa64cabc9a69b95532aa1ae8a6c510d3149554a7014afcbb67b9 | MATLAB | 1,418 | 33 | function [ eye_pos ] = getEyePos( data, opt, side )
%GETEYEPOS Return the position of the the eye in pxl-coordinates
% Accepts a single row of table data as input and the left, right or
% average according to which position needs to be decided. The function
% returns a list of xyz-coordinates in pixels
if nar... |
f8cff4a892fc040aadc41a318650ea0c6f8a6ed8fda83d262c19883f92b57047 | MATLAB | 1,420 | 42 | %% General Configuration
% Define the number of animals
nanimals = length(cell_activity_allday);
% Number of stimulus types
nstim_type = size(stim_type_allday{1},2);
% Define constants
ngratings = 4; % Number of grating stimuli used in the VR, A1, B2, A3, B4
trials.block1 = 11:170; % Trials for block 1
trials.bl... |
b5eb04602ee3373d0956aa0a63ae1e1785b1fd1cb3a4a1590927f9ac8828c149 | MATLAB | 1,421 | 44 | function dm = compileSparseDesignMatrix(dspec, trialIndices)
% Compile information from experiment according to given DesignSpec
expt = dspec.expt;
subIdxs = buildGLM.getGroupIndicesFromDesignSpec(dspec);
totalT = sum(ceil([expt.trial(trialIndices).duration]/expt.binSize));
growingX = sparse([], [], [], 0, dspec.edi... |
fa655180b4bb67f06d7e7d571820048adf373e774779495f6e6c3b5c71dc5316 | MATLAB | 1,421 | 41 | function csInfo = make_csInfo(segData, z)
for f = 1:length(segData(9).data)
csInfo(f).timeAbs_sec = segData(9).data(f);
csInfo(f).timeAbs_e = round(csInfo(f).timeAbs_sec * z.sr_e);
csInfo(f).timeAbs_b = round(csInfo(f).timeAbs_sec * z.sr_b);
csInfo(f).timeRel2Mat_sec = segData(9).data(f) - (... |
bca240aad9a9bf42a15bed4e6ebaefcda86f8773a01b9e6f1c9e8ac53fcd2576 | MATLAB | 1,422 | 41 | function N = nearest_small_prime(N,P)
% N = nearest_small_prime(N,P)
%
% Find the closest, larger number to N with no factors greater than P.
%
% 2018 - Adam Charles (from code by Chris Turnes)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Check inputs
if isempty(P)
P = 7;
end
... |
16adf601aa06a85fff841e6c89882a5e5fb5a59d0bced8d1e71f3d30126f565a | MATLAB | 1,423 | 35 | function [ simulation_voxels_table, dataset_names] = simulation_load_paper_invivo_tensors(path_of_script)
%% White matter
load([path_of_script filesep 'Datasets' filesep 'In-Vivo' filesep 'invivo_datasets.mat']);
simulation_voxels =[Dataset_cb, Dataset_ct, Dataset_or, Dataset_slf, Dataset_mc, Dataset_vc, Dataset_th,... |
0d835540452bfd292a21b3d93c67e3203d1fd989394103ded182729defe6da56 | MATLAB | 1,425 | 42 | function [ts] = timestamp_neuralynx(tsl, tsh)
% TIMESTAMP_NEURALYNX merge the low and high part of Neuralynx timestamps
% into a single uint64 value
% Copyright (C) 2007, Robert Oostenveld
%
% This file is part of FieldTrip, see http://www.ru.nl/neuroimaging/fieldtrip
% for the documentation and details.
%
% Field... |
286a0ed907cfad79d909078db43725d203b219e9574a4c31f093418674fdfcca | MATLAB | 1,425 | 45 | function [activemodules, activesrcposns, activedetposns] = getActiveMSD(probe)
%GETACTIVEMSD Summary of this function goes here
% Takes a probe as input, reads which modules are inactive, and removes
% those from modules. It then finds the sources and detectors that are in
% those inactive modules, and removes th... |
6da55982415514aa8cad1acb2e02d012d7728cdb7cd96a166122142d9bad935f | MATLAB | 1,425 | 35 | function [ns_RESULT, nsSegmentInfo] = ns_GetSegmentInfo(hFile, EntityID);
%ns_GetSegmentInfo Retrieves information specific to segment entities
%
% Usage:
% [ns_RESULT, nsSegmentInfo] = ns_GetSegmentInfo(hFile, EntityID)
%
% Description:
% Retrieves information on the Segment Entity, EntityID, in the
... |
79f12d301db506f7bf41a96d4be8caf7118c24b2d5793367c86f9b82fd989ada | MATLAB | 1,425 | 48 | function renewed_img2 = SVF(grayim)
% Implementation of Singular value feature.
% Implemented by Dongyoon Han.
% If you find a bug, please contact calintz@kaist.ac.kr
% Reference :
% [1] B.Su, S.Lu, and C.L.Tan, "Blurred image region detection and
% classification. In ACM International Conference on Multimedia, pages
... |
9e5d63952184e03de4ac697bb565ec87b0c12203a22a4e8a439ec26e764af609 | MATLAB | 1,425 | 45 | classdef NCNPERCEPT_BATCH < handle
% Object with properties and methods to analyse PerceptPC json file at
% NCN lab - BATCH
%
% Available at: https://github.com/NCN-Lab/DBScope
% For referencing, please use: Andreia M. Oliveira, Eduardo Carvalho, Beatriz Barros, Carolina Soares, Manuel Ferreira-Pint... |
d207dac9f1c677e794ae256df8d9dda092d9a0b9234d8859f4a9bea15c4a1745 | MATLAB | 1,425 | 20 | %% BSI
SC = change_camera_ROI(SC,'BSI',SC.c0,SC.r0,OPT_S.n_FOV); %change camera ROI to capture N_FOV by N_FOV pixels
SC = laser_set(SC.laser_settings.laser_power,SC); %set laser to standart power
cam_SLM_func(double(SC.mask_f_cam),SC,SC.ramp_fx_cam,SC.ramp_fy_cam); ... |
eb12fd75847ca9a378e170820de2ff1444834de7b3702a95af6e4b487df1a51d | MATLAB | 1,425 | 35 | function [ns_RESULT, Time] = ns_GetTimeByIndex(hFile, EntityID, Index);
%ns_GetTimeByIndex Retrieves time range from entity indexes
%
% Usage:
% [ns_RESULT, Time] = ns_GetTimeByIndex(hFile, EntityID, Index)
%
% Description:
% Retrieves the timestamp for the entity identified by EntityID and
% nu... |
e4e54d0737f4d927b6016cb4e3800240d004fc839ad809e8b0a304aa23faff21 | MATLAB | 1,426 | 64 | function ind = aedes_check_file_exist(fnames,fpath)
% AEDES_CHECK_FILE_EXIST - Check if files exist in a specified directory
%
%
% Synopsis:
%
% Description:
%
% Examples:
%
% See also:
%
% This function is a part of Aedes 2.0 - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Nis... |
2debd49220a8f288e6a4d2f2e4bfbe16eac26ba51aef64d6142454f103cf6785 | MATLAB | 1,428 | 48 | % loadMetadataSpreadsheet.m
%
% Function to load information in metadata spreadsheet into a data struct,
% to allow selection of specific subset of data for analysis.
%
% INPUT:
% none - but brings up GUI to allow user to select metadata spreadsheet
%
% OUTPUT:
% metaDat - struct of metadata
%
% CREATED: 9/27/20... |
38a6edc2e68a69d57cde29d3d3d48d8bab06c9f6aeb51e12a9aeec379b274a62 | MATLAB | 1,428 | 51 | function handles = count_remaining_frames(handles)
n=handles.participants.N;
motions=handles.mc.motions;
skip=handles.mc.skip;
n_ar=handles.connectotyping_settings.n_ar;
n_surv_frames=zeros(n,2);
tick=handles.mc.tick;
surv_std=cell(n,1);
surv_mb=cell(n,1);
handles.mc.min_frames=floor(handles.mc.min_time_minutes*60/hand... |
759610e3976bb0c4b2c99b51c0314847c71b0ab0b01d07fd5568e34327c6091b | MATLAB | 1,428 | 52 | % plotHeatmapScript.m
close all
clearvars
dataPath = '/Users/hyang/Dropbox (HMS)/2PAnalysis-Helen/AnalyzedData/230911_moveCond';
figPath = '/Users/hyang/Dropbox (HMS)/2PAnalysis-Helen/Figures/190924_scatter-heatmap';
cellType = 'g13';
xDataName = 'yawAngVel';
yDataName = 'fwdVel';
zDataName = 'diff';
xScale = [-450... |
91353cf5952cc91979d05fcc805bcd51e06289944e5cb396adff4b909762647a | MATLAB | 1,428 | 38 | function ret=SONSetWaveChan(fh, chan, sPhyCh, dvd, bufsize,...
comment, chantitle, scale, offset, units)
% SONSETWAVECHAN creates an ADC channel
%
% RET=SONSETWAVECHAN(FH, CHAN, SPHYCH, DVD, BUFSIZE,...
% COMMENT, CHANTITLE, SCALE, OFFSET, UNITS)
%
% ... |
a1b6e7f4037808fb3ceb912a26cbf6dd56c06034fed710e68606309152c6377f | MATLAB | 1,428 | 54 | function aedes_killfigs(opt)
% AEDES_KILLFIGS - Close all Matlab figures (also with hidden handles) with brute force
%
%
% Synopsis:
%
% Description:
%
% Examples:
%
% See also:
%
% This function is a part of Aedes - A graphical tool for analyzing
% medical images
%
% Copyright (C) 2006 Juha-Pekka Niskanen <Juha-... |
f53799201b41865d027644895661f6174c58cc2e04160093d5120e8f3f927642 | MATLAB | 1,428 | 40 | % Starburst Algorithm
%
% This source code is part of the starburst algorithm.
% Starburst algorithm is free; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later vers... |
024eed9af71f954992d3ed98f522117e616bd077aeeae22fe23fd8a50f90e6bf | MATLAB | 1,429 | 52 | function subj_power_delay_ft_wavelet(sn)
% time frequency power of each set size, delay locked
load('subs.mat');
subname = subs.name{sn};
set_name = fullfile(Dir.prepro,[subname,'_clean.set']);
EEG = pop_loadset('filename',set_name);
EEG = pop_select(EEG,'nochannel',{'LHEOG','RHEOG','BVEOG','TVEOG'});
X ... |
3f2a12abccb7597e517a8085741a1bc5381c9638b296ca149fffe406df852466 | MATLAB | 1,429 | 43 | function [Hpos Hneg] = diversity_coef_sign(W, Ci)
%DIVERSITY_COEF_SIGN Shannon-entropy based diversity coefficient
%
% [Hpos Hneg] = diversity_coef_sign(W,Ci);
%
% The Shannon-entropy based diversity coefficient measures the diversity
% of intermodular connections of individual nodes and ranges from 0 to 1.
%... |
7b45a070081dff85cb7aed443d54b9588989316ef89bd3f352eff7da158f3468 | MATLAB | 1,429 | 46 | function results = vl_test_imintegral(varargin)
% VL_TEST_IMINTEGRAL
vl_test_init ;
function state = setup()
state.I = ones(5,6) ;
state.correct = [ 1 2 3 4 5 6 ;
2 4 6 8 10 12 ;
3 6 9 12 15 18 ;
4 8 12 ... |
fefdb5a0fb8e97af6746d970bed5e24c73ad03710eef53db9802fb0294038a91 | MATLAB | 1,429 | 46 | function deleteRecordings( obj, indx )
% Delete a recording.
%
% Syntax:
% DELETERECORDING( obj, indx );
%
% Input parameters:
% * obj - object containing data
% * indx - indices of recordings to be deleted
%
% Example:
% DELETERECORDING( indx );
%
% Available at: https://github.com/NCN-Lab/DBScope
% For refe... |
8dfd3dd68587b869d2069b58c843f7283954d6e112b10b76bc9aec4dc69bf48e | MATLAB | 1,430 | 34 | function [HistSpl] = ModifiedCardinalSpline(lag,c_pt,s)
HistSpl = zeros(lag,length(c_pt));
%for each 1 ms timepoint, calculate the corresponding row of the glm input matrix
for i=1:lag
nearest_c_pt_index = max(find(c_pt<i));
nearest_c_pt_time = c_pt(nearest_c_pt_index);
next_c_pt_time = c_pt(nearest_c_pt_i... |
0a686ce2fcad5455f1fe23a96be4db17b2d9b31e853304f473598c6b12de4048 | MATLAB | 1,431 | 47 | function [yfit, vel] = ml_alg_posvel_estimate_1d_sharifi(y, T, dmax)
% This is based on the paper:
% Discrete-Time Adaptive Windowing for Velocity Estimation,
% by Janabi-Sharifi et al, IEEE Transcation on Control System Technology
% Vol 6, November, 2000.
yfit = y;
vel = zeros(1,length(y));
for k = 2:leng... |
86d1e895eaba09fd50841222872ebcff28473c5e1685920541c182c658df550a | MATLAB | 1,431 | 53 | function o_counter = getMostUsedWavelets(sortRes, gaborBank, powerMapF, param, sizeRes, plotta)
%init matrix indicating if for each position a wavelet
%with orient and scale already used
tmpRes = initTmpRes(gaborBank, powerMapF);
%init counter for how many times each wavelet is chosen
o_counter = zeros(numel(gaborBan... |
f1973cc524356d4abd8a5f11300f34f4d643cb762b2c5b8536ec6a72ae9ecbbb | MATLAB | 1,432 | 44 | clear;
clc;
close all;
initime = clock;
addpath('../funcs');
% get the change of PET in parameter space
Delta_e_start = 0.24; % cannot equal to 0
Delta_e_end = 0.3; % can equal to 0.5
Delta_i_start = 0.027; % cannot equal to 0
Delta_i_end = 0.027; % can equal to 0.5
Delta_steps = 200;
Iattn = 0.02;
time = 4000;
strt_... |
c34aa91b41fe93d33bebb8bd61e47dae8bf78b552b8120d7f8e9e5cd7382b8c7 | MATLAB | 1,433 | 42 | clear
file=dir('ACC*uncertain*.mat');
k=1;
for jj=1:length(file)
load(file(jj).name)
N=Info.Cellnumber;
hit=find(outcome(:,1)==1);
ro=find(outcome(:,1)==5);
ur=find(outcome(:,1)==6);
for j=1:N
hitdf=eachDF{j}(:,hit);
rodf=eachDF{j}(:,ro);
urdf=eachDF{j}(:,ur);... |
70dada6e6bdd744e0b511dd0d76b8b06482d0c375713b6f97066f7293ec0624a | MATLAB | 1,434 | 45 |
%# -*- texinfo -*-
%# @deftypefn {Function File} {} [A B] = gamfit (@var{R})
%# Finds the maximumlikelihood estimator for the Gamma distribution for R
%# @seealso{gampdf, gaminv, gamrnd, gamlike}
%# @end deftypefn
%# This function works by minimizing the value of gamlike for the vector R.
%# Just about any minimizati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.