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 | kirthevasank/add-gp-bandits-master | addGPBO.m | .m | add-gp-bandits-master/BOLibkky/addGPBO.m | 12,386 | utf_8 | 685b9693a9c91edf7c6a65061bec944c | function [maxVal, maxPt, boQueries, boVals, history] = addGPBO(...
oracle, decomp, bounds, numIters, params)
% Implements Gaussian Process Bandits/ Bayesian Optimisation using Additive
% Gaussian Processes. Please see our ICML 2015 paper: "High Dimensional Bayesian
% Optimisation and Bandits via Additive Models". K.... |
github | kirthevasank/add-gp-bandits-master | boAddGP.m | .m | add-gp-bandits-master/BOLibkky/boAddGP.m | 10,315 | utf_8 | f6e2a89e51b17eb83972cb9dc157968c | function [maxVal, maxPt, boQueries, boVals, history] = bayesOptDecompAddGP(...
oracle, decomp, bounds, numIters, params)
% The same as bayesOptADDGP except that now the decomposition may not be known.
% params should have a field called decompStrategy: It should be one of
% 'known', 'learn', 'random' and 'partialLea... |
github | kirthevasank/add-gp-bandits-master | getEIUtility.m | .m | add-gp-bandits-master/BOLibkky/getEIUtility.m | 494 | utf_8 | 0e35c9d382d871e5e3b3c7df5ee4b284 | function util = getEIUtility(x, gpFuncH, trunc)
% Expected Improvement Utility. Applies only to non-additive functions.
[mu, s] = gpFuncH(x);
util = truncatedGaussianMean(mu, s, trunc);
end
function truncMean = truncatedGaussianMean(mu, sigma, trunc)
% computes the value E[max(0, x)] where x~N(mu, sigma^2)
y =... |
github | kirthevasank/add-gp-bandits-master | nextperm.m | .m | add-gp-bandits-master/utils/nextperm.m | 7,748 | utf_8 | faee9dbbc7db9635876231410e940984 | function C = nextperm(N,K)
%NEXTPERM Loop through permutations without replacement.
% NEXTPERM(N,K), when first called, returns a function handle. This
% function handle, when called, returns the next permutation without
% replacement of K elements taken from the set 1:N. This can be useful
% when the number o... |
github | kirthevasank/add-gp-bandits-master | diRect.m | .m | add-gp-bandits-master/utils/diRect.m | 29,701 | utf_8 | 2a6a35eb3b762b8f379fab1673fbbccb | function [ret_minval,final_xatmin,history, queries, queryVals] = diRect...
(Problem,bounds,opts,varargin)
% Function : Direct Version 4.0
% Written by : Dan Finkel (definkel@unity.ncsu.edu)
% Created on : 01/27/2003
% Last Update: 06/21/2004
% Purpose : Direct optimization algorithm.
%
% This code comes with no... |
github | kirthevasank/add-gp-bandits-master | getAdditiveFunction.m | .m | add-gp-bandits-master/utils/getAdditiveFunction.m | 1,768 | utf_8 | 9b73bf0daf416ca5401e394090a79c70 | function [func, funcProperties] = getAdditiveFunction(numDims, numDimsPerGroup)
% Returns an Additive Function that could be optimized.
if ~exist('numDimsPerGroup', 'var')
numDimsPerGroup = min(5, round(numDims/2));
end
d = numDimsPerGroup;
numRemDims = mod(numDims, d);
D = numDims - numRemDims;
numG... |
github | kirthevasank/add-gp-bandits-master | addGPMargLikelihood.m | .m | add-gp-bandits-master/addGPLibkky/addGPMargLikelihood.m | 9,320 | utf_8 | 9aa9103f87558ea755379cfaae86669c | function [mu, KPost, Mus, KPosts, combinedFuncH, funcHs, ...
sigmaSmOpts, sigmaPrOpts] = ...
addGPMargLikelihood(X, y, Xtest, decomposition, hyperParams)
% Pick the parameters for the GP by maximizing the marginal Likelihood.
% Each GP has a scale and bandwidth parameter that needs to be optimized. We
% could use d... |
github | kirthevasank/add-gp-bandits-master | plotAddGPOutputs.m | .m | add-gp-bandits-master/addGPLibkky/plotAddGPOutputs.m | 1,321 | utf_8 | 25003e21ccd490e636dfe2c54916661d | function plotAddGPOutputs(f, funcHs, trueF, trueFuncHs, decomposition, bounds)
% This is just a general utility function to plot the outputs of an additive GP.
numGroups = numel(decomposition);
numDims = size(bounds, 1);
for k = 1:numGroups
coords = decomposition{k};
currBounds = bounds(coords, :);
... |
github | kirthevasank/add-gp-bandits-master | decompOptBrute.m | .m | add-gp-bandits-master/addGPLibkky/decompOptBrute.m | 2,590 | utf_8 | 89b45beae07ac23e46396ecf902a92d1 | function [A, optVal] = decompOptBrute(func, D, d, M)
% This searches over all permutations
if D > 12
error('D is too large');
end
p = d*M;
numCombs = factorial(D)/ ( factorial(M) * factorial(d)^M * factorial(D-p) );
% nc2 = exp(gammaln(D+1) - M*gammaln(d+1) - gammaln(D-p+1) - gammaln(M+1));
% fprint... |
github | kirthevasank/add-gp-bandits-master | normRotMargLikelihood.m | .m | add-gp-bandits-master/addGPLibkky/normRotMargLikelihood.m | 1,123 | utf_8 | 0dd44abb195d80fedda2594a8bf37296 | function [nlml] = normRotMargLikelihood(sigmaSms, sigmaPrs, decomposition, A, ...
X, y, meanFuncs, commonMeanFunc, noises, commonNoise)
% Returns the normalized marginal likelihood.
% Decomposition is the decomposition after applying Z = X*A;
% prelims
numPts = size(X, 1);
numGroups = numel(decomposition);
D... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | load_porous_prox.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/load_porous_prox.m | 1,821 | utf_8 | a16cc27038434e2609b408643a4cefeb | function [Prox,E] = load_porous_prox(logmin,logmax,k)
% load_porous_prox - KL prox of a power function
%
% [Prox,E] = load_porous_prox(logmin=-10,logmax=10,k=2048)
%
% Prox(q,m,sigma) computes prox_{sigma*E(.,m)}^KL(q)
% where E(.,m) is the generalized entropy
% E(s,m) = s * (log(s)-1) if m==1
% ... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | check_face_vertex.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox_mesh/check_face_vertex.m | 671 | utf_8 | 21c65f119991c973909eedd356838dad | function [vertex,face] = check_face_vertex(vertex,face, options)
% check_face_vertex - check that vertices and faces have the correct size
%
% [vertex,face] = check_face_vertex(vertex,face);
%
% Copyright (c) 2007 Gabriel Peyre
vertex = check_size(vertex,2,4);
face = check_size(face,3,4);
%%%%%%%%%%%%%%%%%%%%%%%... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | cotLaplacian.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox_mesh/cotLaplacian.m | 1,762 | utf_8 | c4fe99ab3dbfbceaeb73adf8552a04de | % Compute the cotangent weight Laplacian.
% W is the symmetric cot Laplacian, and A are the area weights
function [W A] = cotLaplacian(X, T)
nv = size(X,1);
nf = size(T,1);
% Find orig edge lengths and angles
L1 = normv(X(T(:,2),:)-X(T(:,3),:));
L2 = normv(X(T(:,1),:)-X(T(:,3),:));
L3 = normv(X(T(:,1),:)-X... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | compute_butterfly_neighbors.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox_mesh/compute_butterfly_neighbors.m | 1,398 | utf_8 | 0a690efe10cc4cbba37565df43f15a2f | function [e,v,g] = compute_butterfly_neighbors(k, nj)
% compute_butterfly_neighbors - compute local neighbors of a vertex
%
% [e,v,g] = compute_butterfly_neighbors(k, nj);
%
% This is for internal use.
%
% e are the 2 direct edge neighbors
% v are the 2 indirect neighbors
% g are the fare neighbors
%
% You nee... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | isolines.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox_mesh/isolines.m | 3,097 | utf_8 | d0bfae887d719fd445968b6804c8fe2e |
function [LS,LD,I] = isolines(V,F,S,iso)
% ISOLINES compute a list of isolines for a scalar field S defined on the
% mesh (V,F)
%
% [LS,LD,I] = isolines(V,F,S,iso)
%
% Inputs:
% V #V by dim list of vertex positions
% F #F by 3 list of triangle indices
% S #V list of scalar values defined on ... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | blurAnisotropic.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox/blurAnisotropic.m | 1,901 | utf_8 | f86c6fbb3c9fc0e260c403d6178cbe4c | function [Blur, Delta,Grad] = blurAnisotropic(M, options)
% blurAnisotropic - load anisotropic heat kernel
%
% [Blur, Delta, Grad] = blurAnisotropicblurAnisotropic(M, options);
%
% M is an (N,N,2,2) representing the 2D Riemannian manifold.
%
% Blur(u,t,filtIter) iterated filtIter times
% u = (Id + t*(Delta... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | plot_tensor_field.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox/plot_tensor_field.m | 5,737 | utf_8 | 834c210244e7f5acad2c3d7e5bf700d2 | function h = plot_tensor_field(H, M, options)
% plot_tensor_field - display a tensor field
%
% h = plot_tensor_field(H, M, options);
%
% options.sub controls sub-sampling
% options.color controls color
%
% Copyright (c) 2006 Gabriel Peyre
if nargin<3
options.null = 0;
end
if not( isstruct(op... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | load_image.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox/load_image.m | 20,071 | utf_8 | 2407ce9458db2bca9c208e744785af5a | function M = load_image(type, n, options)
% load_image - load benchmark images.
%
% M = load_image(name, n, options);
%
% name can be:
% Synthetic images:
% 'chessboard1', 'chessboard', 'square', 'squareregular', 'disk', 'diskregular', 'quaterdisk', '3contours', 'line',
% 'line_vertical', 'l... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | perform_bfgs.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/toolbox/perform_bfgs.m | 61,800 | utf_8 | 3f89de64e41d316ec7a586ca776299d4 | function [x, R, info, Ncall, xcall, fcall, gcall] = perform_bfgs(Grad, x, options)
% perform_bfgs - wrapper to HANSO code
%
% [x, R, info] = perform_bfgs(Grad, x, options);
%
% Grad should return (value, gradient)
% x is an initialization
% options.niter is the number of iterations.
% options.bfgs_m... |
github | gpeyre/2015-SIIMS-wasserstein-jko-master | TensorDecomposition.m | .m | 2015-SIIMS-wasserstein-jko-master/codes/anisotropic/TensorDecomposition.m | 1,187 | utf_8 | 4df1e0aeeb5dd560217b4a4f5f693e07 | function [b,weights]=TensorDecomposition(tensors)
% Copyright (c) 2015 Jean-Marie Mirebeau
% Check data, reshape tensors
s=size(tensors);
assert(length(s)==2)
assert(s(2)==3)
% Initialize superbases
s(2)=2;
b={ones(s),ones(s),-ones(s)};
b{1}(:,2)=0;
b{2}(:,1)=0;
% Selling's algorithm
posScal=0; %number of consecuti... |
github | axelsoto/dtCSM_unsupervised-master | x2p.m | .m | dtCSM_unsupervised-master/tCMM/x2p.m | 3,239 | utf_8 | ce63877ecb9c526a635f1d861b528822 | function [P, beta] = x2p(X, u, tol)
%X2P Identifies appropriate sigma's to get kk NNs up to some tolerance
%
% [P, beta] = x2p(xx, kk, tol)
%
% Identifies the required precision (= 1 / variance^2) to obtain a Gaussian
% kernel with a certain uncertainty for every datapoint. The desired
% uncertainty can be specifie... |
github | mastersim7/vhdl-hearing-aid-master | generate_random.m | .m | vhdl-hearing-aid-master/matlab/eq/generate_random.m | 615 | utf_8 | 612fe5cb0e685aeb7b4e4eefd4d4ae1a | % generate_random.m
% Mathias Lundell
% 2011-03-10
% Generates a random integer based on a specific number of bits. The
% generated integer could either be signed or unsigned.
% n : number of bits
% signed : 1 = negative and positive numbers; 0 = only positive numbers
function num = generate_random(n, signed)
... |
github | mastersim7/vhdl-hearing-aid-master | bin2int.m | .m | vhdl-hearing-aid-master/matlab/eq/bin2int.m | 747 | utf_8 | a4fd50626c2cbd7956be6cf927811ccc | % bin2int.m
% Author: Mathias Lundell
% Date: 2011-04-01
% Returns integer value for signed binary string.
function int = bin2int(s)
if isstr(s) == 0
fprintf('Input must be a string.\n');
return;
end;
% Take 2's complement for negative numbers
if s(1) == '1'
% Find first 1
index = 1;
... |
github | mastersim7/vhdl-hearing-aid-master | int2bin.m | .m | vhdl-hearing-aid-master/matlab/eq/int2bin.m | 1,245 | utf_8 | 3bf0d9b3efbe3a534c309dcca32e7c5e | % int2bin.m
% Mathias Lundell
% 2011-02-10
% Takes a integer value v and the number of bits as parameters and returns a
% string of signed binary.
function bv = int2bin(v, n)
% Give error message if v is not an integer
if mod(v,1) ~= 0
fprintf('Error in int2bin. Only integers allowed.\n');
% Give... |
github | mastersim7/vhdl-hearing-aid-master | Fr_dec2bin.m | .m | vhdl-hearing-aid-master/matlab/eq/Fr_dec2bin.m | 22,328 | utf_8 | fda7b7c245111a35e6a1accd09675a58 | %THIS FILE HAS NO SPECIFIC LISANCE ; THIS IS NOT MADE BY US AND IS NOT UNDER GPLV2 PLEASE BE AWARE
function [Fr_bin, str_Fr, Fr_dec] = Fr_dec2bin (dec)
% by Sundar Krishnan
% 2003, Edited in June, 2004
%
% Description :
% This function Fr_dec2bin.m will convert a POSITIVE Decimal system
% Fraction (dec) to Binary syst... |
github | mastersim7/vhdl-hearing-aid-master | int2bin.m | .m | vhdl-hearing-aid-master/matlab/eq/pre_design/int2bin.m | 1,202 | utf_8 | ce55e83c1af0ab60e080fa47028662e7 | % int2bin.m
% Mathias Lundell
% 2011-02-10
% Takes a integer value v and the number of bits as parameters and returns a
% string of signed binary.
function bv = int2bin(v, n)
% Give error message if v is not an integer
if mod(v,1) ~= 0
fprintf('Error in int2bin. Only integers allowed.\n');
% Give... |
github | ajbaird/computational_math-master | lorenz.m | .m | computational_math-master/code/lorenz.m | 357 | utf_8 | 20cec2ba7ee28b240765a0f7afaac63f | % this is the ode function which will hold the lorenz equations. Use this
% function with ode45 to get solutions! Written by Austin Baird, UNC
% applied math.
function f = lorenz(t,y)
% define the parameters
sig = 10;
beta = 2.5;
rho = 28;
% now store the equations in an array
f = [sig*(y(2)-y(1)) ; y(1)*(rho - ... |
github | ajbaird/computational_math-master | negative.m | .m | computational_math-master/code/negative.m | 154 | utf_8 | ba66ed25d31f5c70d8659fe437a3ec4b | % stores the ode that has real eigenvalues:
function f = negative(t,y)
a = 0.5;
b = 0.9;
c = -1.2;
d = -1.7;
f = [a*y(1)+b*y(2) ; c*y(1)+d*y(2)];
end |
github | ajbaird/computational_math-master | odefun.m | .m | computational_math-master/code/odefun.m | 512 | utf_8 | 565583e189184ed8ed189da418143e4c | % We will solve the system of odes: x' = x+a*y, y' = y + b*x. Here the
% prime (') doesn't denote spacial deriviative it now denotes a time
% derivative. There are two quantities which are interacting and changing
% with time.
function f = odefun(t,y)
%define the parameters:
a = 0.1;
b = 5.0;
% in a column vecto... |
github | ajbaird/computational_math-master | imaginary.m | .m | computational_math-master/code/imaginary.m | 184 | utf_8 | 77f659a5e2c942b99160c1d1c4e9f656 | % stores the odes to use in the trajectory file:
function f = imaginary(t,y)
% parameters in our system:
a = 2;
b = -5;
c = 1;
d = -2;
f = [a*y(1)+b*y(2) ; c*y(1)+d*y(2)];
end
|
github | ajbaird/computational_math-master | pendulum.m | .m | computational_math-master/code/pendulum.m | 125 | utf_8 | 8683db56fbad7e8afa9b02eb7399f419 | % function that holds the pendulum equations:
function f = pendulum(t,y)
k = (9.8)/(3.0);
f = [y(2) ; -k*sin(y(1))];
end |
github | poldrack/fmri-analysis-vm-master | pRFCorrInstructor.m | .m | fmri-analysis-vm-master/analysis/pRFtutorial/pRFCorrInstructor.m | 1,577 | utf_8 | 2b406a499c8623d5dddcc38b21f3c275 | % function that will be called by Nelder-Mead algorithm to compute
% the corelation of the model with the params and the tSeries.
% It needs to return 1-correlation because Nelder-Mead minimizes
function valueToBeMinimized = pRFCorr(params,stimImage,stimX,stimY,canonical,tSeries)
% number of volumes
n = length(tSerie... |
github | poldrack/fmri-analysis-vm-master | pRFCorr.m | .m | fmri-analysis-vm-master/analysis/pRFtutorial/pRFCorr.m | 283 | utf_8 | f645d64dda07d60b0fb23178870feb61 | % function that will be called by Nelder-Mead algorithm to compute
% the corelation of the model with the params and the tSeries.
% It needs to return 1-correlation because Nelder-Mead minimizes
function valueToBeMinimized = pRFCorr(params,stimImage,stimX,stimY,canonical,tSeries)
|
github | lawrennd/collab-master | computePredictionsErrorWeak.m | .m | collab-master/matlab/computePredictionsErrorWeak.m | 625 | utf_8 | 2cebae9bb711876ad1a62e1a9640a98d |
function [mu_T] = computePredictionsErrorWeak(model,Y,Ytest)
%
% [error_L2,error_NMAE,error_NMAE_round] = computePredictionsErrorWeak(model,Y,Ytest)
val_L2 = 0;
tot_L2 = 0;
val_NMAE = 0;
tot_NMAE = 0;
val_round_NMAE = 0;
tot_round_NMAE = 0;
accum = [];
mu_T = [];
for i = 1:size(Y, 2)
ind = find(Ytest(:, ... |
github | lawrennd/collab-master | PlotResultsMovielensMarlinWeak.m | .m | collab-master/matlab/PlotResultsMovielensMarlinWeak.m | 2,911 | utf_8 | 3edd1f0df55232df63472ad5edcd1c06 | function [L2_error_T,NMAE_error_T,NMAE_round_error_T] = PlotResultsMovielensMarlinWeak(substract_mean,partNo_v,latentDim_v, iters, type, inverted, kernel_type, new_iters)
%
% [L2_error,NMAE_error,NMAE_round_error] = PlotResultsMovielensMarlinWeak(substract_mean,partNo_v,latentDim_v, iters, type, inverted, kernel_type... |
github | lawrennd/collab-master | PlotResultsEachMovieMarlinWeak.m | .m | collab-master/matlab/PlotResultsEachMovieMarlinWeak.m | 2,628 | utf_8 | f2aecb19c2ce0d061783146941d1fb49 | function [L2_error_T,NMAE_error_T,NMAE_round_error_T] = PlotResultsEachMovieMarlinWeak(substract_mean,partNo_v,latentDim_v, iters, type, inverted, kern_type)
%
% [L2_error,NMAE_error,NMAE_round_error] = PlotResultsEachMovieMarlinWeak(substract_mean,partNo_v,latentDim_v, iters, kern_type)
%
% substract_mean --> bool i... |
github | lawrennd/collab-master | PlotResultsMovielensWeak.m | .m | collab-master/matlab/PlotResultsMovielensWeak.m | 2,210 | utf_8 | f7f0d7ad0139a8d8b074176305f67157 | function [L2_error_T,NMAE_error_T,NMAE_round_error_T] = PlotResultsMovielensWeak(substract_mean,partNo_v,latentDim_v, iters, type)
%
% [L2_error,NMAE_error,NMAE_round_error] = PlotResultsMovielensWeak(substract_mean,partNo_v,latentDim_v, iters)
%
% substract_mean --> bool if substract the mean
% partNo_v --> vector w... |
github | lawrennd/collab-master | PlotResultsMovielens.m | .m | collab-master/matlab/PlotResultsMovielens.m | 5,503 | utf_8 | 8a46a7d38ef5947219a5041e7f274310 | function [L2_error_T,NMAE_error_T,NMAE_round_error_T] = PlotResultsMovielens(perc_train_v,substract_mean,partNo_v,latentDim_v, iters, if_plot, if_print)
%
% [L2_error_T,NMAE_error,NMAE_round_error] = PlotResultsMovielens(perc_train,substract_mean,partNo_v,latentDim_v, iters, if_plot, if_print)
%
% perc_train_v -> per... |
github | lawrennd/collab-master | PlotResultsEachMovieMarlinCompareKernels.m | .m | collab-master/matlab/PlotResultsEachMovieMarlinCompareKernels.m | 3,540 | utf_8 | 6b7cdc561efa6a710a27505f68a23a8f | function [] = PlotResultsEachMovieMarlinCompareKernels(substract_mean, partNo_v, latentDim_v, iters, type, inverted, directories, if_plot, if_print)
%
%function [] = PlotResultsEachMovieMarlinCompareKernels(substract_mean, partNo_v, latentDim_v, iters, type, inverted, directories, if_plot, if_print)
if strcmp(type... |
github | lawrennd/collab-master | PlotResultsMovielensMarlinCompareKernels.m | .m | collab-master/matlab/PlotResultsMovielensMarlinCompareKernels.m | 3,643 | utf_8 | 9a1e6b85fbeb33eaa6da08b551988d2e | function [] = PlotResultsMovielensMarlinCompareKernels(substract_mean, partNo_v, latentDim_v, iters, type, inverted, directories, if_plot, if_print, new_iters)
%
%function [] = PlotResultsMovielensMarlinCompareKernels(substract_mean, partNo_v, latentDim_v, iters, type, inverted, directories, if_plot, if_print, new_it... |
github | sakov/csa-c-master | viewinterp.m | .m | csa-c-master/csa/examples/2/viewinterp.m | 2,607 | utf_8 | 8e00720246071dc87e115c141602e669 | function [h] = viewinterp(fin, fout, verbose)
if nargin == 2
verbose = 1;
end
if verbose
fprintf('plotting data from "%s" and "%s"\n', fin, fout);
fprintf(' reading %s...', fin);
end
data = load(fin);
xin = data(:, 1);
yin = data(:, 2);
if verbose
fprintf('\n reading %s...', fout... |
github | sakov/csa-c-master | viewdata.m | .m | csa-c-master/csa/examples/2/viewdata.m | 911 | utf_8 | eb56c90afbd9e6e65143fa37e47662db | function [] = viewdata(fname, verbose)
if nargin == 1
verbose = 1;
end
if verbose
fprintf('plotting data from "%s"\n', fname);
fprintf(' reading %s...', fname);
end
data = load(fname);
x = data(:, 1);
y = data(:, 2);
z = data(:, 3);
clear data;
if verbose
fprintf('\n');
e... |
github | sakov/csa-c-master | viewexample.m | .m | csa-c-master/csa/examples/3/viewexample.m | 2,475 | utf_8 | f87e589016fd07f18d81cb4c6157202f | function viewexample()
fprintf(1, ' Drawing results of reconstruction of two data sets with known error:\n');
fprintf(1, ' (1) data set formed by a superposition of equal number of random points\n');
fprintf(1, ' of Franke function (std = 0.2) and a linear function (std = 5.0)...');
subplot(3, 2, 1);
v... |
github | sakov/csa-c-master | viewexample.m | .m | csa-c-master/csa/examples/1/viewexample.m | 1,405 | utf_8 | d0fcced82e72c01798d0b55055356b84 | function viewexample()
fprintf(1, ' Drawing results of reconstruction of Franke test function...');
subplot(3, 1, 1);
view('data-100.txt', 'out-100.txt');
title('Franke test function; 100 data points');
pause(0.1);
subplot(3, 1, 2);
view('data-300.txt', 'out-300.txt');
title('Franke test function; 300 ... |
github | carpedm20/Run-Length-Prediction-of-Change-Point-by-Text-Features-master | getTableFromWeb_mod.m | .m | Run-Length-Prediction-of-Change-Point-by-Text-Features-master/getTableFromWeb_mod.m | 9,972 | utf_8 | 4f658093bf2c4ea4e5ddd242d6dfe324 | function out_table = getTableFromWeb_mod(url_string, nr_table)
% Syntax:
% out_table = getTableFromWeb_mod(url_string, nr_table)
%
%Description:
%
% Function getTableFromWeb_mod is based on the very very good "pick of the week" from August 20th, 2010
% (http://www.mathworks.com/matlabcentral/fileexchange/22465-get... |
github | carpedm20/Run-Length-Prediction-of-Change-Point-by-Text-Features-master | get_gf_histdata.m | .m | Run-Length-Prediction-of-Change-Point-by-Text-Features-master/get_gf_histdata.m | 5,329 | utf_8 | 28958aeeee7611a9289e94e68ac4daa7 | % function [stock_data] = get_gf_histdata(stock,varargin)
%
% Description: This function gets the historical data of a stock from the
% Google Finance nice website.
%
% Usage: [stock_data] = get_gf_histdata(stock,varargin);
% stock = string containing the market and the stock symbol together:
% ... |
github | carpedm20/Run-Length-Prediction-of-Change-Point-by-Text-Features-master | get_currency_histdata.m | .m | Run-Length-Prediction-of-Change-Point-by-Text-Features-master/get_currency_histdata.m | 3,064 | utf_8 | f33840b1dc9e24588fe59e1325e0a554 | % function [stock_data] = get_gf_histdata(stock,varargin)
%
% Description: This function gets the historical data of a stock from the
% Google Finance nice website.
%
% Usage: [stock_data] = get_gf_histdata(stock,varargin);
% stock = string containing the market and the stock symbol together:
% ... |
github | MarcusVollmer/HRV-master | HRVTool.m | .m | HRV-master/HRVTool.m | 181,496 | utf_8 | 341197d6dda6589b2a8c9745e538f101 | function HRVTool
%Syntax: HRVTool
%
% Analyzing Heart Rate Variability
% Licensed under MIT.
% Copyright (c) 2015-2020 Marcus Vollmer (http://marcusvollmer.github.io/HRV/)
%
% Icons licensed under MIT.
% Copyright (c) 2014 Drifty (http://drifty.com/)
%
% Load BIOPAC ACQ (AcqKnowledge for PC) data version 1.... |
github | MarcusVollmer/HRV-master | load_acq.m | .m | HRV-master/load_acq.m | 20,513 | utf_8 | 4bf187d9755edd65a17a8b1786ae4137 | %LOAD_ACQ load BIOPAC's AcqKnowledge file format for Windows PC
%
% Usage: acq = load_acq(filename, [force_chan_by_chan_load])
%
% acq - AcqKnowledge file structure containing ACQ header field,
% and data matrix.
%
% filename - BIOPAC's AcqKnowledge file
%
% force_chan_by_chan_load - Optional. By default... |
github | MarcusVollmer/HRV-master | HRV.m | .m | HRV-master/HRV.m | 52,843 | utf_8 | 0355a8833513e4f35ac1cd473e13d4e6 | classdef HRV
%Heart Rate Variability
%Continuous measurement for long and short term RR Intervals. All available
%methods uses matrix operations as far as possible, to obtain local HRV
%measures for long sequences of RR intervals. Missing values will be
%accepted.
%
% Available HRV methods:
% SDSD - Com... |
github | ehkropf/ConfMapTk-master | adaptplot.m | .m | ConfMapTk-master/adaptplot.m | 5,191 | utf_8 | f62e0870bbe62716e033009629966dca | function [out1,out2] = adaptplot(fun,tspan,varargin)
%ADAPTPLOT Adaptively plot an explicit or parametric curve.
% ADAPTPLOT(FUN,TSPAN) adaptively selects values of t in the interval
% TSPAN in order to produce a nice-looking plot. FUN should accept column
% vector inputs for t and produce an array X=FUN(T), wher... |
github | qx0731/Work_Mesh_Regularization-master | data_to_off.m | .m | Work_Mesh_Regularization-master/data_to_off.m | 985 | utf_8 | 0aba7e173183e0889c9a6970fcaf776c | % Write off file from Tri and Pts
function data_to_off(Tri,Pts,out)
%output: with output the off file
% input Tri is the trianglule information of the shape, the min of the
% index begin at 1
% Pts gives the coordinates of the points
% tri and Pts are both in form k*n such as 3*n
% out is the name of the output off fil... |
github | qx0731/Work_Mesh_Regularization-master | pdist2.m | .m | Work_Mesh_Regularization-master/Thin_Plate_Spline/pdist2.m | 5,236 | utf_8 | dc53452df6a7f945a99a5beadc3e242b | function D = pdist2( X, Y, metric )
% Calculates the distance between sets of vectors.
%
% Let X be an m-by-p matrix representing m points in p-dimensional space
% and Y be an n-by-p matrix representing another set of points in the same
% space. This function computes the m-by-n distance matrix D where D(i,j)
% is the ... |
github | qx0731/Work_Mesh_Regularization-master | gcv_lambda.m | .m | Work_Mesh_Regularization-master/Thin_Plate_Spline/gcv_lambda.m | 1,053 | utf_8 | c95a184f94f0fdb08ce65b0e164616a9 | function [lambda D]=gcv_lambda(ctrl_pts,Y,Q2,K)
% in my implement, I used n*lambda. So find the minimal lambda then
% multiply by n at the end
%[Pm,Q1,Q2,R] = tps_set_matrices(ctrl_pts);
%[K] = tps_compute_dist_matrix(ctrl_pts);
n=size(ctrl_pts,1);
L=chol(Q2'*K*Q2);
[U D S]=svd(L');
Y1=tps_n_c(Y);
Z=U'*Q2'*Y1;
Z_t=sum(... |
github | 4kbt/NewtonianEotWashToolkit-master | YLM.m | .m | NewtonianEotWashToolkit-master/matlab-src/YLM.m | 1,348 | utf_8 | de4be25bfbffb683086268ffef198362 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | scatterPMMassesYZGrid.m | .m | NewtonianEotWashToolkit-master/matlab-src/scatterPMMassesYZGrid.m | 1,013 | utf_8 | 1dd265f40b39fa94672cee80376ff64d | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | rotatePMArray.m | .m | NewtonianEotWashToolkit-master/matlab-src/rotatePMArray.m | 2,453 | utf_8 | 9f6b5f8b32fb58f23b043c44d31710e9 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | computeMomentSummary.m | .m | NewtonianEotWashToolkit-master/matlab-src/computeMomentSummary.m | 1,224 | utf_8 | 3134668fe0309b55088cd3e3c8aa422e | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | translatePMArray.m | .m | NewtonianEotWashToolkit-master/matlab-src/translatePMArray.m | 1,508 | utf_8 | 6330a65945b7deab6915c0fd9c20ca91 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | computeMoments.m | .m | NewtonianEotWashToolkit-master/matlab-src/computeMoments.m | 2,397 | utf_8 | dfc371dfb533f99fb65121aa3dbb40a3 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | scanCenterAndRemoveLinear.m | .m | NewtonianEotWashToolkit-master/matlab-src/scanCenterAndRemoveLinear.m | 1,014 | utf_8 | ee54a27d43268b7163a3922b915bd928 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | displayPointsRandomSubset.m | .m | NewtonianEotWashToolkit-master/matlab-src/displayPointsRandomSubset.m | 1,128 | utf_8 | c9dafff04d1615bcd209db1e1008b029 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | displayPoints.m | .m | NewtonianEotWashToolkit-master/matlab-src/displayPoints.m | 1,083 | utf_8 | efad49054495acf84abd73111bc62938 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | pointMatrixGravity.m | .m | NewtonianEotWashToolkit-master/matlab-src/pointMatrixGravity.m | 4,107 | utf_8 | 16d5e682a3d4257aa9b38329f73774f5 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | scanToPMArray.m | .m | NewtonianEotWashToolkit-master/matlab-src/scanToPMArray.m | 1,276 | utf_8 | 8aef00eea1b3f71f830d879d7bb03ffc | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | Gmmr2Array.m | .m | NewtonianEotWashToolkit-master/matlab-src/Gmmr2Array.m | 1,119 | utf_8 | d1a896b5e666acdf64e3716803a9b3eb | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassArrayFrom2DArray.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassArrayFrom2DArray.m | 2,364 | utf_8 | b36ab1a2a0c2dce4a1ccc0250201bc49 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassXRing.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassXRing.m | 925 | utf_8 | 065026cc5aeec312132691af1704f5c3 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassRandomRectangle.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassRandomRectangle.m | 1,016 | utf_8 | fa609a185a1542e0a36c53bab48c7dd0 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassRoundXSheet.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassRoundXSheet.m | 788 | utf_8 | 6fd0f1398ecab0d1821e4e2f08327ad4 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassSphericalRandomShell.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassSphericalRandomShell.m | 1,817 | utf_8 | 102e46e5041b58a00009ef6ebfa03755 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassRandomDisk.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassRandomDisk.m | 1,199 | utf_8 | 11a86d5586acf137260d0592e549ebfc | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassAnnlSheet.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassAnnlSheet.m | 2,300 | utf_8 | 50d11e39b62d8ca145ff15f4ba3124d7 | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassRect.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassRect.m | 1,473 | utf_8 | 874ddc4d65f81fdeba78679832e7a0ee | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | 4kbt/NewtonianEotWashToolkit-master | genPointMassLine.m | .m | NewtonianEotWashToolkit-master/matlab-src/shapes/genPointMassLine.m | 895 | utf_8 | 76da921d0ab67aa1326a8e22bb2876bb | # PointGravity: a simple point-wise Newtonian gravitation calculator.
# Copyright (C) 2017 Charles A. Hagedorn
#
# 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, version 3.
#
# ... |
github | dongzhenye/biosignal-tools-master | plot_coupling.m | .m | biosignal-tools-master/biosig4matlab/t501_VisualizeCoupling/plot_coupling.m | 7,794 | utf_8 | 60a5ed9702a8c1d223c2c377738dd180 | function plot_coupling(data,locs,pars);
% usage plot_coupling(data,locs,pars);
% makes head-in-head plots
% data is an NxN matrix where N is the number of channels
% locs is (ideally) an Nx5 matrix:
% 1st column: a channel i gets a circle only if locs(i,1)>.5
% if locs is an Mx5 matrix with M<N
%... |
github | dongzhenye/biosignal-tools-master | plot_coherence_rand.m | .m | biosignal-tools-master/biosig4matlab/t501_VisualizeCoupling/plot_coherence_rand.m | 7,599 | utf_8 | 921d0c2bb997539fb9dfb5bf194b202b | function plot_coherence(data,locs,pars);
% usage plot_coherence(data,locs,pars);
% makes head-in-head plots
% data is an NxN matrix where N is the number of channels
% locs is (ideally) an Nx5 matrix:
% 1st column: a channel i gets a circle only if locs(i,1)>.5
% if locs is an Mx5 matrix with M<N... |
github | dongzhenye/biosignal-tools-master | locphys2locphys.m | .m | biosignal-tools-master/biosig4matlab/t501_VisualizeCoupling/locphys2locphys.m | 4,187 | utf_8 | ac49b116af7bbff4c6fb072f3466800f | function [loc_phys,names]=locphys2locphys(loc_phys_in);
% Purpose: create 'physical' locations from neoroscan-data
%
% usage: [loc_phys,names]=loc2locphys(fn,ind_phys,loctype)
%
% output: loc_phys nX5 matrix; each row contains information
% about a physical electrode in the form
% ... |
github | dongzhenye/biosignal-tools-master | showfield_general.m | .m | biosignal-tools-master/biosig4matlab/t501_VisualizeCoupling/showfield_general.m | 2,574 | utf_8 | ffae1806380a13d020cee099fab2f8b6 | function showfield_general(z,loc,pars);
% usage showfield_general(z,loc);
% displays fields/potentials specified z in channels at locations
% specified in locs as a contour-plot
%
% pars is optional
% pars.scale sets the scale of the color map. Either a 1x2 vector
% corresponding to minimum and a maximum o... |
github | dongzhenye/biosignal-tools-master | plot_coherence_dots.m | .m | biosignal-tools-master/biosig4matlab/t501_VisualizeCoupling/plot_coherence_dots.m | 8,686 | utf_8 | ef427a547b421bf6c1e5cefc9063a21b | function plot_coherence_dots(data,locs,pars);
% usage plot_coherence(data,locs,pars);
% makes head-in-head plots
% data is an NxN matrix where N is the number of channels
% locs is (ideally) an Nx5 matrix:
% 1st column: a channel i gets a circle only if locs(i,1)>.5
% if locs is an Mx5 matrix wit... |
github | dongzhenye/biosignal-tools-master | sphfit.m | .m | biosignal-tools-master/biosig4matlab/t501_VisualizeCoupling/sphfit.m | 1,907 | utf_8 | 545ad59afcaa98465201834183b866f3 | function [center,radius]=sphfit(vc)
% SPHFIT fits a sphere to a set of surface points
%
% input:
% vc nx3 matrix, where each row represents the location
% of one surface point. vc can have more than 3 columns
% (e.g. orientations) - then only the first 3 columns are used
%
% center 1x3 vector denoting th... |
github | dongzhenye/biosignal-tools-master | scpopen.m | .m | biosignal-tools-master/biosig4matlab/t200_FileAccess/scpopen.m | 57,414 | utf_8 | 07d0eac972f4f7c4aeac8e7db6bd1180 | function [HDR]=scpopen(arg1,CHAN,arg4,arg5,arg6)
% SCPOPEN reads and writes SCP-ECG files
%
% SCPOPEN is an auxillary function to SOPEN for
% opening of SCP-ECG files for reading ECG waveform data
%
% Use SOPEN instead of SCPOPEN
%
% See also: fopen, SOPEN,
% $Id$
% (C) 2004,2006,2007,2008 by Alois Schloegl <a... |
github | dongzhenye/biosignal-tools-master | openxml.m | .m | biosignal-tools-master/biosig4matlab/t200_FileAccess/openxml.m | 13,850 | utf_8 | a2522f85226716568c1d40ee7e6666f6 | function [HDR]=openxml(arg1,CHAN,arg4,arg5,arg6)
% OPENXML reads XML files and tries to extract biosignal data
%
% This is an auxilary function to SOPEN.
% Use SOPEN instead of OPENXML.
%
%
% HDR = openxml(HDR);
%
% HDR contains the Headerinformation and internal data
%
% see also: SOPEN, SREAD, SSEEK, STELL, SCLOSE,... |
github | dongzhenye/biosignal-tools-master | matread.m | .m | biosignal-tools-master/biosig4matlab/t200_FileAccess/matread.m | 10,469 | utf_8 | 0d1e03ba621826c76168a94bdbe90c8e | function [HDR,data,t]=matread(HDR,arg2,idxlist)
% MATRREAD Loads (parts of) data stored in Matlab-format
%
% [HDR,data,timeindex]=matread(HDR,block_number, [startidx, endidx])
% This is the recommended use for Matlab-files generated from ADICHT data
% Before using MATREAD, HDR=MATOPEN(filename, 'ADI', ...) must b... |
github | dongzhenye/biosignal-tools-master | eegplugin_biosig.m | .m | biosignal-tools-master/biosig4matlab/eeglab/eegplugin_biosig.m | 3,624 | utf_8 | 98dba671b6281727ca315d2f5551a94e | % eegplugin_biosig() - EEGLAB plugin for importing data using BIOSIG Matlab toolbox
%
% Usage:
% >> eegplugin_biosig(fig, trystrs, catchstrs);
%
% Inputs:
% fig - [integer] EEGLAB figure
% trystrs - [struct] "try" strings for menu callbacks.
% catchstrs - [struct] "catch" strings for menu callbacks.... |
github | dongzhenye/biosignal-tools-master | pop_readbdf.m | .m | biosignal-tools-master/biosig4matlab/eeglab/pop_readbdf.m | 8,545 | utf_8 | 5469849667b4be27f91c2ced20e8b954 | % pop_readbdf() - Read Biosemi 24-bit BDF file
%
% Usage:
% >> EEG = pop_readbdf; % an interactive window pops up
% >> EEG = pop_readbdf( filename ); % no pop-up window
% >> EEG = pop_readbdf( filename, range, eventchans, ref );
%
% Graphical interface:
% "Data block range to read" - {edit box] se... |
github | dongzhenye/biosignal-tools-master | pop_readedf.m | .m | biosignal-tools-master/biosig4matlab/eeglab/pop_readedf.m | 3,977 | utf_8 | 5a1f3e3710cfeff03e075a8c07cdcab9 | % pop_readedf() - Read a European data format .EDF data file.
%
% Usage:
% >> EEG = pop_readedf; % an interactive window pops up
% >> EEG = pop_readedf( filename ); % no pop-up window
%
% Inputs:
% filename - European data format 16-bit EDF file
%
% Outputs:
% EEG - EEGLAB data ... |
github | dongzhenye/biosignal-tools-master | pop_biosig.m | .m | biosignal-tools-master/biosig4matlab/eeglab/pop_biosig.m | 4,988 | utf_8 | f7d5b0c8e894b15e97782834a472e1b8 | % pop_biosig() - import data files into EEGLAB using BIOSIG toolbox
%
% Usage:
% >> OUTEEG = pop_biosig; % pop up window
% >> OUTEEG = pop_biosig( filename, channels, type);
%
% Inputs:
% filename - [string] file name
% channels - [integer array] list of channel indices
% type - [string] file type. See sl... |
github | dongzhenye/biosignal-tools-master | nqrsdetect.m | .m | biosignal-tools-master/biosig4matlab/t300_FeatureExtraction/nqrsdetect.m | 12,010 | utf_8 | dfd16e72af64c755bd520423735d53ec | function QRS = nqrsdetect(S,fs);
% nqrsdetect - detection of QRS-complexes
%
% QRS=nqrsdetect(S,fs);
%
% INPUT
% S ecg signal data
% fs sample rate
%
% OUTPUT
% QRS fiducial points of qrs complexes
%
%
% see also: QRSDETECT
%
% Reference(s):
% [1]: V. Afonso, W. Tompkins, T. Nguyen, and S. Luo, ... |
github | dongzhenye/biosignal-tools-master | qrscorr.m | .m | biosignal-tools-master/biosig4matlab/t300_FeatureExtraction/qrscorr.m | 11,377 | utf_8 | f0d9168b614d6412516944fd0f2dc3df | function [QRStime_corr,dr,dr_corr,U,ANNOT] = QRScorr(QRSindex,Fs,Nmax);
% Identification and correction of detection errors on QRS-beat sequences
%
% This algorithm identifies anomalies like FP, FN or ectopic beats.
% The FP and FN are corrected by deleting or inserting one or multiple beats.
%
% INPUT:
% QRSi... |
github | dongzhenye/biosignal-tools-master | hurst.m | .m | biosignal-tools-master/biosig4matlab/t300_FeatureExtraction/hurst.m | 1,747 | utf_8 | f36b269b6ee9ccb711eadc8bf0110dd6 | %% Copyright (C) 1995, 1996, 1997 Friedrich Leisch
%%
%% This file is part of Octave.
%%
%% Octave 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 2, or (at your option)
%% any later version.... |
github | dongzhenye/biosignal-tools-master | remNoiseTF.m | .m | biosignal-tools-master/biosig4matlab/t320_Nirs/remNoiseTF.m | 5,637 | utf_8 | 6aa8e22518b72dd5e39c23d8b8a0bff4 | function corrSignal=remNoiseTF(signal,noise,fs,windowlength)
%
% remNoiseTF removes respiration an blood pressure related noise from
% [(de)oxy-Hb] signals by using a transfer function model [1,2]. For a detailed
% description of the model see [3].
%
% [corrSignal]=remNoiseTF(signal,noise,fs,shift)
%
% Inpu... |
github | dongzhenye/biosignal-tools-master | train_sc.m | .m | biosignal-tools-master/biosig4matlab/t400_Classification/train_sc.m | 38,368 | utf_8 | 78f47a549cfe60632399a714044de38c | function [CC]=train_sc(D,classlabel,MODE,W)
% Train a (statistical) classifier
%
% CC = train_sc(D,classlabel)
% CC = train_sc(D,classlabel,MODE)
% CC = train_sc(D,classlabel,MODE, W)
% weighting D(k,:) with weight W(k) (not all classifiers supported weighting)
%
% CC contains the model parameters of a classifier w... |
github | dongzhenye/biosignal-tools-master | isdir.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/isdir.m | 864 | utf_8 | cb1ff118a492dd2f2e6e2c6df4db7cab | ## Copyright (C) 2004 Alois Schloegl
##
## 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 2 of the License, or
## (at your option) any later version.
##
## This program is distr... |
github | dongzhenye/biosignal-tools-master | wilcoxon_test.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/wilcoxon_test.m | 3,003 | utf_8 | 785cb0c5004ed932a442fea86f68b52a | %% Copyright (C) 1995, 1996, 1997 Kurt Hornik
%%
%% This file is part of Octave.
%%
%% Octave 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 2, or (at your option)
%% any later version.
%%
%... |
github | dongzhenye/biosignal-tools-master | flops.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/flops.m | 863 | utf_8 | acc5af64fabf799431a2c3b568ee4825 | %% Copyright (C) 2004 Alois Schloegl
%%
%% 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 2 of the License, or
%% (at your option) any later version.
%%
%% This program is distr... |
github | dongzhenye/biosignal-tools-master | isequal3.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/isequal3.m | 6,725 | utf_8 | c3a44d26a3451aabd832fd1471f80789 | %% Copyright (C) 2000, 2005, 2006, 2007 Paul Kienzle
%%
%% This file is part of Octave.
%%
%% Octave 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) an... |
github | dongzhenye/biosignal-tools-master | strtok.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/strtok.m | 4,016 | utf_8 | 343c3e4f44c87e4bdcdc196330d152cb | %% Copyright (C) 2000 Paul Kienzle
%% Copyright (C) 2008 Alois Schloegl
%% $Id: strtok.m,v 1.2 2008-01-19 20:31:52 schloegl Exp $
%% This function is part of BioSig http://biosig.sf.net
%% Originally, it was part of Octave. It was modified for the use with FreeMat
%%
%%
%% This program is free software; you can redist... |
github | dongzhenye/biosignal-tools-master | strvcat.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/strvcat.m | 2,438 | utf_8 | 2a9e59852f342da41b6b676aba9e7eb1 | %% Copyright (C) 1996 Kurt Hornik
%%
%% 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 2, or (at your option)
%% any later version.
%%
%% This program is distributed in the hope ... |
github | dongzhenye/biosignal-tools-master | betapdf.m | .m | biosignal-tools-master/biosig4matlab/maybe-missing/betapdf.m | 1,845 | utf_8 | b3277cfe86c485b62d558c2c0f1b667f | %% Copyright (C) 1995, 1996, 1997 Kurt Hornik
%%
%% This file is part of Octave.
%%
%% Octave 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 2, or (at your option)
%% any later version.
%%
%... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.