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 | 3arbouch/ActiveNoiseCancelling-master | BrightSideHDR.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/BrightSideDisplay/BrightSideHDR.m | 33,200 | utf_8 | 872984c69a1dbd7a4c53f1862c6f4e56 | function [win, winRect] = BrightSideHDR(cmd, arg, dummy, varargin)
% BrightSideHDR(cmd [, arg1][, arg2]) -- Psychtoolbox interface to
% BrightSide Technologies High Dynamic Range display device.
%
% This function is used to set up and interface with the High Dynamic Range
% display of BrightSide Technologies. It is a M... |
github | 3arbouch/ActiveNoiseCancelling-master | PR705config.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/PR705Toolbox/PR705config.m | 2,831 | utf_8 | 488d47fbad6feb9f05a833e91d60d257 | function out = PR705config(varargin)
% PR705config - Update the PR-705 configuration.
%
% Syntax:
% config_str (string) = PR705config
% errcode (scalar) = PR705config('Option1', value1, 'Option2', value2, ...)
%
% Description:
% A wrapper for setting various options on the PR-705 using the 'S'
% command. With no input ... |
github | 3arbouch/ActiveNoiseCancelling-master | PsychEyelinkDispatchCallback.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkBasic/PsychEyelinkDispatchCallback.m | 16,861 | utf_8 | f25ee9b2f919224800ac83994293d091 | function rc = PsychEyelinkDispatchCallback(callArgs, msg)
% Retrieve live eye-image from Eyelink, show it in onscreen window.
%
% This function is normally called from within the Eyelink() mex file.
% Normal user code only calls it once to supply the eyelink defaults struct.
% This is handled within the EyelinkInitDefa... |
github | 3arbouch/ActiveNoiseCancelling-master | EyelinkGazeContingentDemo.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/GazeContingentDemos/EyelinkGazeContingentDemo.m | 14,200 | utf_8 | 4255bf4de3f892542c0986a049147810 | function EyelinkGazeContingentDemo(mode)
%
% ___________________________________________________________________
%
% Demo implementation of a generic gaze-contingent display.
% We take one input image and create - via image processing - two images
% out of it: An image to show at the screen location were the subject
% ... |
github | 3arbouch/ActiveNoiseCancelling-master | eyelinkdemoexp.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/notOSXed/EyelinkDemoExperiment_notOSXed/eyelinkdemoexp.m | 5,607 | utf_8 | 7a468c616d86830d81ece3aad83a5b0d | function eyelinkdemoexp
% demo for some simple gaze recording experiments using eyelinktoolbox
% created after SAMPLE EXPERIMENT FOR MACINTOSH, by Dave Stampe , 27 June '97
% History
% 15-05-01 fwc created first version
% 22-05-01 fwc debugging
% 25-05-01 fwc fixed small bug, different pict for simpletrial demo
% 02-0... |
github | 3arbouch/ActiveNoiseCancelling-master | SimpleStepExperiment.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/notOSXed/Palmerdemo_notOSXed/SimpleStepExperiment.m | 12,765 | utf_8 | 2c53486743543359b942f7771c0ea1fe | function SimpleStepExperiment
% Simple experiment to measure response time using eye movements.
% v10 new improved single condition experiment (like e3, e5)
% Displays fixation followed by left or right stimulus.
% Requires left or right eye movement to corresponding stimulus.
% Requires file: setEyelinkDefaults
% J... |
github | 3arbouch/ActiveNoiseCancelling-master | EyelinkImageExample.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/EyelinkShortDemos/EyelinkImageExample.m | 3,505 | utf_8 | e9969f526d8c8070b26371fcc93e48a1 | function result=EyelinkImageExample
% Short MATLAB example program that uses the Eyelink and Psychophysics
% Toolboxes to measure viewing behaviour for an image.
%
% History
% 15-06-10 fwc created it, based on EyelinkExample.m
clear all;
commandwindow;
try
fprintf('EyelinkToolbox Image View Example\n\n... |
github | 3arbouch/ActiveNoiseCancelling-master | EyelinkEventExample.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/EyelinkShortDemos/EyelinkEventExample.m | 8,120 | utf_8 | b39ff1d495b9ca1fb968353523545678 | function EyelinkEventExample
% Short MATLAB example program to demonstrate the use of events
% with the Eyelink and Psychophysics Toolboxes. When subject gazes at an object
% it changes color. When gaze moves away, it toggles back
%
% history
% 28-10-02 fwc created it, based on eyelinkexample
% 27-11-02 fwc changed di... |
github | 3arbouch/ActiveNoiseCancelling-master | EyelinkGetTrackerImageDemo.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/EyelinkShortDemos/EyelinkGetTrackerImageDemo.m | 1,651 | utf_8 | eccedcbb74b49da553aed5c871b773a9 | function EyelinkGetTrackerImageDemo
% This shows you how to register a callback m-file that can display the tracker's eye image in PTB
PsychDefaultSetup(1);
try
% Disable key output to Matlab window:
ListenChar(2);
% Open a window for eye image display:
w = Screen('OpenWindow', max(Scre... |
github | 3arbouch/ActiveNoiseCancelling-master | EyelinkExample.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkDemos/EyelinkShortDemos/EyelinkExample.m | 6,065 | utf_8 | 9825ea9c67ffa89521138fd6ec66c78b | function EyelinkExample
% Short MATLAB example program that uses the Eyelink and Psychophysics
% Toolboxes to create a real-time gaze-dependent display.
% This is the example as shown in the EyelinkToolbox article in BRMIC
% Cornelissen, Peters and Palmer 2002), but updated to use new routines
% and functionality.
%
%... |
github | 3arbouch/ActiveNoiseCancelling-master | testsampletime.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/EyelinkToolbox/EyelinkTests/testsampletime.m | 6,459 | utf_8 | 6b2100f49bca14d531d556e3762d4052 | function testsampletime
% Routine to test timing of functions that sample eye position
% John Palmer, last revised 6/6/01
%
% Most tests are of "getsample" function at the bottom of this program.
% It uses 'newfloatsampleavailable' and 'newestfloatsample'.
%
% To run this test program, do an initial calibration, then p... |
github | 3arbouch/ActiveNoiseCancelling-master | DaqMemRead.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/Daq/DaqMemRead.m | 2,428 | utf_8 | 9d8251a179597f31b776e9d7b7ac7043 | function [data,TheErrors]=DaqMemRead(daq,address,bytes)
% [data,[errorstructure]]=DaqMemRead(DeviceIndex,address,bytes)
% USB-1208FS: Read memory. This command reads data from the configuration
% memory (EEPROM). All of the memory may be read.
% "DeviceIndex" is a small integer, the array index specifying which HID
% ... |
github | 3arbouch/ActiveNoiseCancelling-master | DaqReset.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/Daq/DaqReset.m | 4,068 | utf_8 | 675e300b6aa2e7866fd70707e298bde0 | function err=DaqReset(OldDaqIndex)
% err=DaqReset(DeviceIndex)
% Assuming that something's wrong with the USB-1208FS or our communication
% with it, we re-enumerate in order to re-establish communication. Then we
% send the reset command to ask the USB-1208FS to reset itself. Then we
% re-enumerate again to re-establis... |
github | 3arbouch/ActiveNoiseCancelling-master | PR670setsyncfreq.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychHardware/PR670Toolbox/PR670setsyncfreq.m | 2,343 | utf_8 | ae0f70b9a5a17f77352dffc411ce2be9 | function PR670setsyncfreq(syncFreq)
% PR670setsyncfreq - Sets the sync frequency for the light source.
%
% Syntax:
% PR670setsyncfreq(syncFreq)
%
% Input:
% syncFreq (scalar) - The sync frequency for source. Can be 1 of 3 options:
% 1. 0 - No sync
% 2. 1 - Auto sync
% 3. 20-400 - Frequency in Hz
%
% Notes:... |
github | 3arbouch/ActiveNoiseCancelling-master | SoundTrigger.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychObsolete/SoundTrigger.m | 5,793 | utf_8 | d1430bfcceac53ab057f5a993cd4a889 | function SoundRecordingtest(duration)
% Basic test and demo of the sound recording/capture functionality of the
% new PsychSound() function.
%
% Parameters: duration = Recordingcapacity (in seconds) of the sound capture
% buffer. After recording of sound has been started, PsychSound will
% perform continuous recording ... |
github | 3arbouch/ActiveNoiseCancelling-master | read_rle_rgbe.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychContributed/read_rle_rgbe.m | 4,614 | utf_8 | dbebf5ad32a539df7813ea18bb0eaf18 | % read_rle_rgbe
%
% Written by Lawrence A. Taplin (taplin@cis.rit.edu)
%
% Based loosely on the c-code RGBE implementation written by Bruce Walters
% http://www.graphics.cornell.edu/~bjw/rgbe.html
%
% function to read a run length encoded RGBE picture file and header. This does
% not work if the image is not RLE!!!
%
%... |
github | 3arbouch/ActiveNoiseCancelling-master | wintabslowLoop.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychContributed/WinTab/wintabslowLoop.m | 7,649 | utf_8 | fffd12583f3aa4e66c1c92b2a12c06f5 | function slowLoop(samplingRate)
% function slowLoop(samplingRate)
%
% Opens a PTB Screen, attaches a tablet to the associated screen pointer wPtr and records data from a graphics tablet. The data is sorted
% and output to a .mat file and an Excel file.
%
% INPUTS:
% samplingRate: sampling rate in Hz for your ... |
github | 3arbouch/ActiveNoiseCancelling-master | wintabfastLoop.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychContributed/WinTab/wintabfastLoop.m | 5,958 | utf_8 | c3a7d86ce782aefca593c54f64edbc75 | function fastLoop
% function fastLoop
%
% Opens a PTB Screen, attaches a tablet to the associated screen pointer wPtr and dumps out the contents of an event queue.
%
%
% pkt = WinTabMex(5) reads the latest data point out of a tablet's event queue. This queue is a buffer that can hold around 50 data points.
% Th... |
github | 3arbouch/ActiveNoiseCancelling-master | CalibrateFitGamma.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychCal/CalibrateFitGamma.m | 13,356 | utf_8 | d405c14bef29862850d50cf419fc2aeb | function cal = CalibrateFitGamma(cal,nInputLevels)
% cal = CalibrateFitGamma(cal,[nInputLevels])
%
% Fit the gamma function to the calibration measurements. Options for field
% cal.describe.gamma.fitType are:
% simplePower
% crtLinear
% crtPolyLinear
% crtGamma
% crtSumPow
% betacdf
% sigmoid
% ... |
github | 3arbouch/ActiveNoiseCancelling-master | ScreenDrawDots.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychBasic/ScreenDrawDots.m | 10,536 | utf_8 | 235f7ad6ec69e4346a431759f4fa2648 | function ScreenDrawDots(windowPtr, varargin)
% Workaround-Wrapper for the Screen('DrawDots') function.
%
% Usage: ScreenDrawDots(windowPtr, xy [, dotdiameter=1][, dotcolor=white][, center2D][, dot_type=1]);
%
% This function is the equivalent of the Screen('DrawDots') subfunction
% for fast drawing of 2D dots. It has t... |
github | 3arbouch/ActiveNoiseCancelling-master | KbKeysAction.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychBasic/KbKeysAction.m | 1,075 | utf_8 | 9ec7c61603d8a503bb3e58c001409a08 | % now, with the help of mapKeys (3rd example could be improved)
%lum = KbKeysAction(keyCodes, 'a', 's', lum, -50, 50);
%depth = KbKeysAction(keyCodes, 'z', 'x', depth, -50, 50);
%quitTime = KbKeysAction(keyCodes, '', 'q', 0, 0, 1);
%end
function newval = KbKeysAction(keysPressed, keyDec, keyInc, current, minV, maxV)
%... |
github | 3arbouch/ActiveNoiseCancelling-master | FitConeFundamentalsWithNomogram.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychColorimetricData/FitConeFundamentalsWithNomogram.m | 3,434 | utf_8 | 4e07e5aef45b2facc054dcb078d34775 | function [params,fitFundamentals,fitError] = FitConeFundamentalsWithNomogram(T_targetQuantal,staticParams,params0)
% [fitFundamentals,params,fitError] = FitConeFundamentalsWithNomogram(T_targetQuantal,staticParams,params0)
%
% Find underlying parameters that fit the passed corneal cone fundamentals
%
% 8/4/03 dhb... |
github | 3arbouch/ActiveNoiseCancelling-master | Var2Str.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychFiles/Var2Str.m | 10,181 | utf_8 | 7df61b1e549e4e90d33db9e89b4d372e | function str = Var2Str(varargin)
% str = Var2Str(in,name)
%
% Takes variable IN and creates a string representation of it that would
% return the original variable when fed to eval(). NAME is the name of the variable
% that will be printed in this string.
% Can process any (combination of) MATLAB built-in datatyp... |
github | 3arbouch/ActiveNoiseCancelling-master | CheckDirs.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychFiles/CheckDirs.m | 1,298 | utf_8 | a110351826588af32c9c20e4359476b7 | function CheckDirs(dirs,mode)
% CheckDirs(dirs,mode):
% Iterates over all fields in struct 'dirs' and checks whether the Contents are existing directory addresses.
% mode == 'check': Display an error if this is not the case.
% mode == 'make' : Creates the directory if it doesnt exist.
% Default mode is 'check'.
%... |
github | 3arbouch/ActiveNoiseCancelling-master | FileFromFolder.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychFiles/FileFromFolder.m | 2,357 | utf_8 | 990dfb39666608ef14c50fba0806cc83 | function [file,nfile] = FileFromFolder(folder,mode,f_ext)
% [file,nfile] = FileFromFolder(folder,mode,ext)
%
% Returns struct with all files in directory FOLDER.
% MODE specifies whether an error is displayed when no directories are
% found (default). If MODE is 'silent', only a message will will be
% displayed i... |
github | 3arbouch/ActiveNoiseCancelling-master | QuestBetaAnalysis.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/Quest/QuestBetaAnalysis.m | 3,295 | utf_8 | 852352901dc1d2c7b2a724fc0444c77a | function betaEstimate=QuestBetaAnalysis(q,fid)
% betaEstimate=QuestBetaAnalysis(q,[fid]);
%
% Analyzes the quest function with beta as a free parameter. It prints (in
% the file or files pointed to by fid) the mean estimates of alpha (as
% logC) and beta. Gamma is left at whatever value the user fixed it at.
%
% Note... |
github | 3arbouch/ActiveNoiseCancelling-master | MunsellGriddata3.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychColorimetric/PsychMunsell/MunsellGriddata3.m | 6,452 | utf_8 | 95fc04f1c18f6f8c729fd14cb60cd5ae | function [w,X,tri,v] = MunsellGriddata3(x,y,z,v,xi,yi,zi,method,options,X,tri)
% [w,X,tri] = MunsellGriddata3(x,y,z,v,xi,yi,zi,method,options,X,tri)
%
% This is a modified version of the Matlab function griddata3. We modified
% to allow precomputing of the triangulation, and then direct use of that.
% This will allows... |
github | 3arbouch/ActiveNoiseCancelling-master | oalconst.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychSound/MOAL/source/oalconst.m | 4,439 | utf_8 | 01a9a38190b9652177875d015aa6c3c1 | function oalconst(glheaderpath, aglheaderpath)
% OGLCONST Collect AL, ALU, and AAL constants from C header files, and
% store them in oalconst.mat
%
% usage: oalconst
% 09-Dec-2005 -- created (RFM)
% 23-Jan-2005 -- constants saved in both struct and OpenGL style (RFM)
% 05-Mar-2006 -- ability to spec. sys... |
github | 3arbouch/ActiveNoiseCancelling-master | moglExtractTexture.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/moglExtractTexture.m | 31,782 | utf_8 | 5ad9a12b20dcc8ba1fb47479e89df70f | function varargout = moglExtractTexture(cmd, varargin)
% moglExtractTexture(cmd [, arg1][, arg2][, ...]) - "MOGL Video texture extraction"
%
%
% The algorithm makes heavy use of GPU based image processing for maximum
% speed, so it needs at least NVidia Geforce 6000 series or ATI Radeon
% X1000 series graphics hardware... |
github | 3arbouch/ActiveNoiseCancelling-master | BitsPlusPlus.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/BitsPlusPlus.m | 81,512 | utf_8 | 8c698df100140dbe77bd81108fff3a5e | function [win, winRect] = BitsPlusPlus(cmd, arg, dummy, varargin)
% BitsPlusPlus(cmd [, arg1][, arg2, ...]) -- Psychtoolbox interface to
% Cambridge Research Systems Bits++ and Bits# boxes for high precision
% stimulus output to analog displays via 14 bit video converters.
%
% This function is used to set up and interf... |
github | 3arbouch/ActiveNoiseCancelling-master | VignetCalibration.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/VignetCalibration.m | 16,463 | utf_8 | daa5020a16fed9b50e9a4e6be4d038a4 | function s = VignetCalibration(filename, screenId)
% s = VignetCalibration([filename] [, screenId])
%
% Vignetted Luminance calibration procedure for undistortion of distorted
% display luminance.
%
% This code was created by Jorrit S. Montijn of the Laboratoire Psychologie
% de la Perception at Universite Paris Descar... |
github | 3arbouch/ActiveNoiseCancelling-master | CreateDisplayWarp.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/CreateDisplayWarp.m | 29,629 | utf_8 | 65ff02e4cba0708f0bc1252ed1127f7c | function [warpstruct, filterMode] = CreateDisplayWarp(window, calibfilename, showCalibOutput, varargin)
% [warpstruct, filterMode] = CreateDisplayWarp(window, calibfilename [, showCalibOutput=0]);
%
% Helper routine for Geometric display undistortion mapping, not to be
% called inside normal PTB scripts!
%
% This funct... |
github | 3arbouch/ActiveNoiseCancelling-master | PsychColorCorrection.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/PsychColorCorrection.m | 74,580 | utf_8 | 5f2b7a897751201637f56f0f8a58435e | function varargout = PsychColorCorrection(cmd, varargin)
% varargout = PsychColorCorrection(cmd, varargin)
%
% This function is used to setup and control the built-in color correction
% and transformation mechanisms of PTB's imaging pipeline. It allows to choose
% among different methods of color correction (for calib... |
github | 3arbouch/ActiveNoiseCancelling-master | PsychVideoSwitcher.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/PsychVideoSwitcher.m | 32,784 | utf_8 | c6fb6af436885d02633bd71d62d83e49 | function varargout = PsychVideoSwitcher(cmd, varargin)
% PsychVideoSwitcher(command [,arg1, arg2, .....]);
%
% Psychtoolbox support for the Xiangrui Li et al. "VideoSwitcher" video
% attenuator device for high precision luminance output with up to 16 bits
% luminance resolution.
%
% This routine incorporates code contr... |
github | 3arbouch/ActiveNoiseCancelling-master | PsychImaging.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/PsychImaging.m | 230,316 | utf_8 | af80ba8344377fd97a62d018d96ad2e9 | function [rc, winRect] = PsychImaging(cmd, varargin)
% rc = PsychImaging(subcommand [,arg1][,arg2][....,argn]) - Control common
% functions of the Psychtoolbox GPU image processing pipeline.
%
% This function allows you to setup and control various aspects and common
% functions of the Psychtoolbox image processing pip... |
github | 3arbouch/ActiveNoiseCancelling-master | manual_calibrate.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychGLImageProcessing/private/manual_calibrate.m | 29,358 | utf_8 | 7f9f2f900d4667de43d646dfa3dbd5c4 | function scal = manual_calibrate(scal)
% function outdots = manual_calibrate(screenNum, [dots])
%
% View all dots, calibrate manually. This function can be used either
% to update the global variables XCALIBDOTS YCALIBDOTS, or to modify the
% locations of a specific subset of dots. The first is what happens if
% the ... |
github | 3arbouch/ActiveNoiseCancelling-master | DotOffset.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/DotOffset.m | 4,661 | utf_8 | b66670bcc345d6b4743d96031dd0a41f | % [dx,dy,dz,a,e] = DotOffset(r,d,ndots)
% computes DX, DY and DZ offsets to move a point in a direction specified
% by R. Output for NDOTS offsets are computed independently. Only azimuthal
% direction can be specified or both azimuth and elevation, in which case a
% number of different randomizations are possible ... |
github | 3arbouch/ActiveNoiseCancelling-master | PsychGPUControl.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/PsychGPUControl.m | 8,099 | utf_8 | f63ce25f7c0e75c50ead4b397e6f3f3f | function rc = PsychGPUControl(cmd, varargin)
% rc = PsychGPUControl(cmd, arg); -- Control low-level GPU settings.
%
% PsychGPUControl calls into external helper tools to change certain
% low-level operating settings of your systems graphics card (GPU).
%
% Not all operating systems and GPU's support this. The function ... |
github | 3arbouch/ActiveNoiseCancelling-master | Ind2Str.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/Ind2Str.m | 1,345 | utf_8 | 9482b3810134e8fc51c1ee922517b899 | function str = Ind2Str(p,numchar)
% str = Ind2Str(p)
% converts indices (numbers) to characters (base 10 to base 26 conversion):
% Ind2Str( 1) = 'a'
% Ind2Str(26) = 'z'
% Ind2Str(27) = 'ba'
% if P is a vector or matrix of indices, output will be a cell of the
% same dimensions
% representation with least number... |
github | 3arbouch/ActiveNoiseCancelling-master | overrideBuiltInFunction.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/overrideBuiltInFunction.m | 2,251 | utf_8 | 3efaa0c9c2dc736fdbb9ec46c47480d6 | % Method to override a MATLAB built-in function with a user-supplied function
% with the same name. The way this works is that it replaces the built-in function
% with a function handle parameter whose name matches that of the overriden
% function.
%
% Usage:
% functionName = overrideBuiltInFunction('functionNam... |
github | 3arbouch/ActiveNoiseCancelling-master | Rot3d.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/Rot3d.m | 2,060 | utf_8 | 879aebcefd4931f361f5aba362e041ea | function out = Rot3d(in,n,dim)
% out = Rot3d(in,n,dim)
% rotates input matrix around x-, y- of z-axis
% IN is a vector, a 2D or a 3D matrix (all three can be rotated three
% dimensionally)
%
% rotation can only be performed by multiples of 90 degrees, N is the
% number of 90 degree steps by which the matrix will... |
github | 3arbouch/ActiveNoiseCancelling-master | NearestResolution.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/NearestResolution.m | 4,343 | UNKNOWN | 6b542f6b5aff027ceda1f84826d6fd63 | function res=NearestResolution(screenNumber,width,height,hz,pixelSize,outputId)
% res=NearestResolution(screenNumber,[width,height,hz,pixelSize])
% res=NearestResolution(screenNumber [,width][,height][,hz][,pixelSize][,outputId])
% res=NearestResolution(screenNumber,desiredRes)
%
% Finds the available screen resolution... |
github | 3arbouch/ActiveNoiseCancelling-master | DescribeComputer.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/DescribeComputer.m | 5,011 | utf_8 | 2f55071bf7216a3c1182d209e5798f41 | function DescribeComputer
% DescribeComputer prints out several lines of text about the computing
% environment that your programs are running in. It is called by many of
% the programs in PsychTest to document the computing environment of the
% test. E.g. try running ScreenTest. Also see DescribeScreen and
% Describe... |
github | 3arbouch/ActiveNoiseCancelling-master | WrapString.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/WrapString.m | 2,136 | utf_8 | c2cf104c14915a30c89291390dc72875 | function wrappedString=WrapString(string,maxLineLength)
% wrappedString=WrapString(string,[maxLineLength])
%
% Wraps text by changing spaces into linebreaks '\n', making each line as
% long as possible without exceeding maxLineLength (default 74
% characters). WrapString does not break words, even if you have a word
%... |
github | 3arbouch/ActiveNoiseCancelling-master | GetGITInfo.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychOneliners/GetGITInfo.m | 2,739 | utf_8 | b9607d082028b5dd8eb2248873166839 | function gitInfo = GetGITInfo(directory)
% gitInfo = GetGITInfo(directory)
%
% Description:
% Retrieves the git information on a specified directory or file. This is
% essentially a wrapper around the shell command "git".
%
% Input:
% directory (string) - Directory name of interest.
%
% Output:
% gitInfo (struct) - St... |
github | 3arbouch/ActiveNoiseCancelling-master | BatchAnalyzeTiming.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/BatchAnalyzeTiming.m | 9,497 | utf_8 | 1e199afcba1ec9e1f29b37b83694b691 | function BatchAnalyzeTiming(sdir)
global res;
if nargin < 1
sdir = [];
end
if isempty(sdir)
sdir = pwd;
end
% Recursively get filenames of all result files in 'sdir' directory tree:
[fdir, fnames] = subdir(sdir);
[gnrTotal, gnrSkipped, gnrCorrupt, gnrDisagree,... |
github | 3arbouch/ActiveNoiseCancelling-master | PosterBatchAnalyzeTimestamps.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/PosterBatchAnalyzeTimestamps.m | 7,828 | utf_8 | 095c7c37a0d88cd0f8fc042bd887b268 | function PosterBatchAnalyzeTimestamps
% PosterBatchAnalyzeTimestamps
%
% Iterate over all timingtest result files ('Res_flipconfig_xxxx') which
% contain valid high precision flip timestamps, either based on
% 'p'hotodiode measurements or 'd'atapixx measurements.
%
% measMethod must be 'p' or 'd' for photo-diode measur... |
github | 3arbouch/ActiveNoiseCancelling-master | PsychHIDTest.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/PsychHIDTest.m | 6,258 | utf_8 | ba32ef8a9b11573cd3db1cf0f6f4e5c8 | function PsychHIDTest
% PsychHIDTest
%
% PsychHIDTest exercises the PsychHID mex file. We list all the HID
% devices. We read from the keyboard and mouse. We flicker the keyboard
% LEDs.
%
% On MS-Windows we only list the HID devices, as mouse and keyboard are
% not really accessible for PsychHID on MS-Windows.
%
% NO... |
github | 3arbouch/ActiveNoiseCancelling-master | CopyWindowTest.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/CopyWindowTest.m | 6,009 | utf_8 | ef405e6f1a97b3f754a42dc36252596a | function CopyWindowTest(uselegacy, sf, sd)
% CopyWindowTest([uselegacy=0][, sf=1][, sd=1])
%
% Basic correctness test of different path's of Screen('CopyWindow')
% Copies a small rectangular region from one window into another window.
% Each source region is copied/replicated 25 times into a 5 by 5 matrix.
%
% T... |
github | 3arbouch/ActiveNoiseCancelling-master | DaqTest.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/DaqTest.m | 50,682 | utf_8 | 9aef33cdf091bf6575c78a517f841e75 | function DaqTest
% DaqTest
%
% DaqTest assesses the Daq Toolbox, which provides communication with a
% particular USB data acquisition device (daq): the USB-1208FS made by
% Measurement Computing (see URL below). This daq costs $150 and offers "50
% kHz" input and output 12-bit sampling of analog voltages (8 in, 2 out)... |
github | 3arbouch/ActiveNoiseCancelling-master | Color3DLUTTest.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/Color3DLUTTest.m | 4,417 | utf_8 | aeebf441545087251804613ffcedd35e | function Color3DLUTTest
% A simple test/demo of use of 3D CLUT color correction.
%
% Shows some simple test color transformations, performs some CLUT
% conversion accuracy test at the end, measuring how smaller CLUT sizes /
% resolutions affect the precision of color conversion.
%
% Press any key to progress through di... |
github | 3arbouch/ActiveNoiseCancelling-master | HighColorPrecisionDrawingTest.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/HighColorPrecisionDrawingTest.m | 34,764 | utf_8 | d62101e6ddbae265e145c6204b1f75cd | function HighColorPrecisionDrawingTest(testconfig, maxdepth, testblocks)
% HighColorPrecisionDrawingTest([testconfig][, maxdepth][, testblocks])
%
% Test for numeric drawing precision of your graphics card (GPU). Exercises
% a number of tests, where some 2D drawing primitive(s) is drawn in some
% well defined color, th... |
github | 3arbouch/ActiveNoiseCancelling-master | Files_Test_FileVar2Str.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/UnitTests/Files_Test_FileVar2Str.m | 3,804 | utf_8 | 21188d8d372e85864d26ff26a67845f9 | function success = Files_Test_FileVar2Str
if IsOctave
fprintf('Var2Str is not supported on Octave as its mat2str doesn''t handle logical or sparse input and we depend on that (I don''t want to replicate functionality from matlab''s mat2str)\nVar2Str will work ok on Octave if you input numeric non-empty data, po... |
github | 3arbouch/ActiveNoiseCancelling-master | Files_Test_LineTerminators.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychTests/UnitTests/Files_Test_LineTerminators.m | 2,094 | utf_8 | 5eba5e62695818477c36014fa8c46f1f | function success = Files_Test_LineTerminators
success = true;
% create some input
a = sprintf('1\n2'); % unix/linux/OSX
b = sprintf('1\r\n2'); % windows
c = sprintf('1\r2'); % macintosh (OS9 or earlier)
d = sprintf('1\r\n\r2'); % windows, followed by mac os9
try
% test: ReplaceLi... |
github | 3arbouch/ActiveNoiseCancelling-master | CombVec.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/Psychtoolbox/PsychProbability/CombVec.m | 1,291 | utf_8 | 1dbe8efa080a91185320f1a38758a111 | function out = CombVec(varargin)
%CombVec Generate all possible combinations of input vectors.
%
% CombVec(A1,A2,...) takes any number of inputs,
% A1 - Matrix of N1 (column) vectors.
% A2 - Matrix of N2 (column) vectors.
% ...
% and returns a matrix of (N1*N2*...) column vectors, where the c... |
github | 3arbouch/ActiveNoiseCancelling-master | linuxmakeitoctave3.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/PsychSourceGL/Source/linuxmakeitoctave3.m | 13,188 | utf_8 | 91af7f3e637e0630efe4ecc35957905a | function linuxmakeitoctave3(mode)
% This is the GNU/Linux version of makeit to build the Linux
% mex files for Octave on Linux.
if ~IsLinux || ~IsOctave
error('This script is for Octave on Linux only!');
end
if nargin < 1
mode = 0;
end
% Rebuild all request?
if mode == -1
% Yes: Call ourselves recursivel... |
github | 3arbouch/ActiveNoiseCancelling-master | osxmakeitoctave3.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/PsychSourceGL/Source/osxmakeitoctave3.m | 21,655 | utf_8 | 3feca6aa615a121e5b2b6ef5cd5a351e | function osxmakeitoctave3(mode)
% This is the MacOSX version of makeit: It is meant for building PTB for
% 64-Bit Octave-3.8+ on OSX for Intel-Mac, on 10.9 Mavericks or later.
%
% This build routine also encodes octave runtime library paths for octave
% versions 3.8.0 to 3.8.2, as installed by Octave-Forge, HomeBrew or... |
github | 3arbouch/ActiveNoiseCancelling-master | windowsmakeit64_twisty.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/PsychSourceGL/Source/windowsmakeit64_twisty.m | 20,443 | utf_8 | 534516be6748773fa4f18a65bbd8b142 | function windowsmakeit64_twisty(what, onoctave)
% Builds the 64-Bit Psychtoolbox on MS-Windows for Octave and Matlab.
% This script is customized for MK's build machine "twisty", building
% against a VirtualBox VM running MS-Windows 7 64-Bit.
%
if ~(IsWin(1) || (IsWin && IsOctave))
error('%s must be run on MS-Wind... |
github | 3arbouch/ActiveNoiseCancelling-master | striplibsfrommexfile.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/PsychSourceGL/Source/striplibsfrommexfile.m | 3,049 | utf_8 | 0881fa950528f78f8ea7e49bed4da0f6 | function striplibsfrommexfile(filename, testrun)
% striplibsfrommexfile(filename [, testrun=0]);
%
% Remove a certain set of dynamic library dependencies from MEX/OCT file
% given via 'filename'. Optional 'testrun' if set to non-zero value will
% perform a dry-run.
%
% The stripped libraries (see source of this file) a... |
github | 3arbouch/ActiveNoiseCancelling-master | windowsmakeit32_twisty.m | .m | ActiveNoiseCancelling-master/Psychtoolbox/PsychSourceGL/Source/Experiments/windowsmakeit32_twisty.m | 17,314 | utf_8 | 91cac852e40fb36b0a4d5db2f79f774f | function windowsmakeit32_twisty(what, onoctave)
% Builds the 32-Bit Psychtoolbox on MS-Windows for Octave and Matlab.
% This script is customized for MK's build machine "twisty", building
% against a VirtualBox VM running MS-Windows 7 64-Bit.
%
if ~IsWin || IsWin(1)
error('%s must be run on MS-Windows within 32-Bi... |
github | jiangwenwen1231/FB_UTE_Recon-master | ute_gate_extract.m | .m | FB_UTE_Recon-master/ute_gate_extract.m | 1,541 | utf_8 | 885c039ff35bd5078211e89b302938a3 | function gate = ute_gate_extract(k0, ref)
%% Use K0 to extract self-gatign signal
%find the largest variation coils
tmp = std(abs(k0),1);
ind = find(tmp == max(tmp));
hh = fir1(512,1/250);
%hh = fir1(1024,1/5000);
rawdata = k0(:,ind);
tmp = [rawdata(400:-1:1);rawdata;rawdata(end:-1:end-255)];
%tmp = [rawdata(1000:-... |
github | oweisse/dpav4-contest-master | LaunchRSMAttack_linux.m | .m | dpav4-contest-master/LaunchRSMAttack_linux.m | 7,894 | utf_8 | 2b2582543e19da694e0bef539dad13f8 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | Moffset.m | .m | dpav4-contest-master/Moffset.m | 2,031 | utf_8 | 72af88f943b558cfdd170d59e8e73bbb |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | LaunchRSMAttack_windows.m | .m | dpav4-contest-master/LaunchRSMAttack_windows.m | 5,755 | utf_8 | f4b426b265611ccc523eec724cb87273 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | RSM.m | .m | dpav4-contest-master/experiments_etc/RSM.m | 17,021 | utf_8 | 8da1cb8b8cb06967f4bfb4b4cfabc7f0 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | calcCorrelation.m | .m | dpav4-contest-master/experiments_etc/calcCorrelation.m | 1,644 | utf_8 | 50b3d57ad27f0fae7dbe412d4046023a |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | Moffset.m | .m | dpav4-contest-master/experiments_etc/Moffset.m | 2,008 | utf_8 | 564ae44e24560a92fab55a48c066dd8d |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | GenerateOPB.m | .m | dpav4-contest-master/experiments_etc/GenerateOPB.m | 1,807 | utf_8 | 33c41a10ea48f4e0d428f20db39b99e5 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | CalcEntropyEvolution.m | .m | dpav4-contest-master/experiments_etc/CalcEntropyEvolution.m | 4,672 | utf_8 | 8a81084dd4793aa025b3abf0b1a3cd15 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | VerifySolver.m | .m | dpav4-contest-master/experiments_etc/VerifySolver.m | 6,113 | utf_8 | 9f1d30b1ae3c87fb29074b4307167439 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | LaunchRSMAttack.m | .m | dpav4-contest-master/experiments_etc/LaunchRSMAttack.m | 5,621 | utf_8 | dc2cdabb15e8a0631a7fd6ce843cd449 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | FindBadLeaks.m | .m | dpav4-contest-master/experiments_etc/FindBadLeaks.m | 1,918 | utf_8 | 56857b6b46a1f2cbb9243ed87b6ed62b |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | SumOfSquares.m | .m | dpav4-contest-master/experiments_etc/SumOfSquares.m | 1,301 | utf_8 | 028d4da97559a24df6f99577c1911036 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | ComputeCoupleStatistices.m | .m | dpav4-contest-master/experiments_etc/ComputeCoupleStatistices.m | 4,566 | utf_8 | b662a0d1d876ab7d43f0ff800beb4c53 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | GenerateIdealPostrios.m | .m | dpav4-contest-master/experiments_etc/GenerateIdealPostrios.m | 3,022 | utf_8 | da294516376b8aeccc1444c4f3bdd08b |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | oweisse/dpav4-contest-master | NumKeyCandidates.m | .m | dpav4-contest-master/experiments_etc/NumKeyCandidates.m | 1,447 | utf_8 | 6f0a7143b65a6adf6167c2d22d469ff8 |
% Author: Ofir Weisse, mail: oweisse (at) umich.edu, www.ofirweisse.com
%
% MIT License
%
% Copyright (c) 2016 oweisse
%
% Permission is hereby granted, free of charge, to any person obtaining a copy
% of this software and associated documentation files (the "Software"), to deal
% in the Software without restriction, ... |
github | jdelanoy/caffe-master | classification_demo.m | .m | caffe-master/matlab/demo/classification_demo.m | 5,466 | utf_8 | 45745fb7cfe37ef723c307dfa06f1b97 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | Harick1/caffe-yolo-master | classification_demo.m | .m | caffe-yolo-master/matlab/demo/classification_demo.m | 5,412 | utf_8 | 8f46deabe6cde287c4759f3bc8b7f819 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | deskool/Sequential-Regression-Heparin-master | HLtest.m | .m | Sequential-Regression-Heparin-master/HLtest.m | 3,404 | utf_8 | f9cbbbf82c2a7b3ab79c438413b1491f | % Hosmer-Lemeshow goodness-of-fit test
% M. Farbood, April 29, 2012
%
% Assumes that the last column in M is the outcome. The previous columns
% are the predictors.
%
function [HLstat HLp HLdf contingencyM] = HLtest(M, betas, numGroups)
% Assumes there are 10 groups by default if a value is not specified.
... |
github | link841/Gauss-Seidel-Method-master | GaussSeidel.m | .m | Gauss-Seidel-Method-master/GaussSeidel.m | 2,082 | utf_8 | bdd8e6d1e68ae69e708e0d85d91dcf8e | % GaussSeidel function
% Kevin(Yinuo) Huang CID:01051134 16:13-18:20 29/03/2016
% Ax=B
function x=GaussSeidel(A,B,tolerence,MaxNumOfIter)
% A and B are input matrix, err is the tolerence, NumOfIter is the
% number of iterations
% x is the output solution
% take the size of two matrix
[n,m]... |
github | lamastex/computational-statistical-experiments-master | guiMultinomial.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/guiMultinomial.m | 33,800 | utf_8 | b8f6cba707edbeeb455240ae31b40d27 | function varargout = guiMultinomial(varargin)
% GUIMULTINOMIAL M-file for guiMultinomial.fig
%
% guiMultinomial displays a GUI for visualising multinomial replications for
% a 2-d (ie binomial) or 3-d multinomial distribution.
%
% The following parameters are set using the GUI controls:
% ... |
github | lamastex/computational-statistical-experiments-master | guiInversionSampler.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/guiInversionSampler.m | 56,180 | utf_8 | 0ffa8aa24a25bdeb49b1dacdc91693b9 | % GUI Inversion sampler
% An inversion sampler GUI
% Available target distributions:
% Uniform(a, b) where a and b are upper and lower bounds, b > a
% Exponential(r) where r>0 is rate parameter
% Laplace(l, r) where l is location parameter and r>0 is rate parameter
% Cauchy (l, s) were l is location paramter a... |
github | lamastex/computational-statistical-experiments-master | guiRejections.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/guiRejections.m | 60,214 | utf_8 | f6d2ee862af71c268c2236c94f41d7e5 | function varargout = guiRejections(varargin)
% GUIREJECTIONS M-file for guiRejections.fig
% GUIREJECTIONS, by itself, creates a new GUIREJECTIONS or raises the existing
% singleton*.
%
% H = GUIREJECTIONS returns the handle to a new GUIREJECTIONS or the handle to
% the existing singleton*.
%
% ... |
github | lamastex/computational-statistical-experiments-master | Demo.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/Demo.m | 4,253 | utf_8 | 9ced5986a4bbdc1f8d0bf74d6d477be4 | function output_args = Demo( trials, depth, weights, animate_p)
% example usage: m = Demo(30, 10, [1/3 1/3 1/3], true);
% m = Demo(30, 10, [.5 .5], true);
% Go!
output_args = createMovie(trials ,depth, createDeMoivreSampler(123, weights), animate_p);
end
function animation = createMovie... |
github | lamastex/computational-statistical-experiments-master | createDeMoivreSampler.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/createDeMoivreSampler.m | 803 | utf_8 | 809692c39336d07db13e013ad015fc90 | function deMoivreMap = createDeMoivreSampler(weights)
%CREATEDEMOVIRESAMPLER Summary of this function goes here
% Detailed explanation goes here
% If we only recive 1 weight then assume equi 1/weights
if (size(weights,2) == 1),
deMoivreMap = createEqui(weights);
return;
% weights = on... |
github | lamastex/computational-statistical-experiments-master | sort.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/@vpi/sort.m | 4,819 | utf_8 | 6035777d5c5a309312edb9fb138503c6 | function [Ns,tags] = sort(N,dim,sdir)
% SORT: Sorts a vpi array in ascending or descending order.
%
% For vectors, SORT(X) sorts the elements of X in ascending order.
% For matrices, SORT(X) sorts each column of X in ascending order.
% For N-D arrays, SORT(X) sorts the along the first non-singleton
% dimension ... |
github | lamastex/computational-statistical-experiments-master | randint.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/@vpi/randint.m | 4,587 | utf_8 | ad1f9058158cf55967f25c66ddb1f2e7 | function R = randint(N,samplesize)
% vpi/randint: generate a single random vpi number, uniformly chosen from the interval [1,N]
% usage: R = randint(N); % one integer chosen
% usage: R = randint(N,samplesize); % multiple samples generated
%
% Generate a random nonegative integer,
% uniformly chosen from the closed int... |
github | lamastex/computational-statistical-experiments-master | factor.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/@vpi/factor.m | 12,274 | utf_8 | 59fb5b944c3692a364973315ce0efa1d | function factorlist = factor(INT,maxiter)
% vpi/factor: computes the factors of a large integer
% usage: factorlist = factor(INT,maxiter)
%
% If the number is determined to be composite, and
% too large to be factored using simpler methods,
% then Pollard's rho method is used to find the
% factors. This may take a lon... |
github | lamastex/computational-statistical-experiments-master | quotient.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/@vpi/quotient.m | 7,206 | utf_8 | d3df59619025be8aa841e475f47641fd | function [Q,R] = quotient(numerator,denominator)
% vpi/quotient: divides two vpi objects, computing a quotient and remainder
% usage: mp = quotient(numerator,denominator);
%
% quotient is used by the rdivide and rem functions.
% When numerator and/or demonimator represent negative
% numbers, then the quotient and rema... |
github | lamastex/computational-statistical-experiments-master | mod.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/@vpi/mod.m | 6,235 | utf_8 | 1cf6dee8be43faae185e6327d623070b | function R = mod(a,b)
% vpi/mod: modulus after integer division of vpi objects
% usage: R = mod(a,b);
%
% vpi/mod is consistent with double/mod when the
% signs of the arguments vary.
%
% By convention:
% mod(a,0) is 0
% mod(a,a), for a~=0, is 0.
% mod(a,b), for a~=b and b~=0, has the same sign as b.
%
%
% argument... |
github | lamastex/computational-statistical-experiments-master | gcd.m | .m | computational-statistical-experiments-master/matlab/csebook/scripts/@vpi/gcd.m | 4,066 | utf_8 | 6867e47c4f1c896df87b30aed7c17965 | function D = gcd(varargin)
% vpi/gcd: Greatest Common Divisor of two (or more) vpi objects
% usage: D = gcd(INT1,INT2)
% usage: D = gcd(INT1,INT2,INT3,...)
%
% The binary gcd algorithm is used. See
% http://en.wikipedia.org/wiki/Binary_GCD_algorithm
%
% arguments: (input)
% INT1,INT2 - a pair of vpi scalars, or any
%... |
github | carlosgalvezp/Udacity-Self-Driving-Car-Nanodegree-master | error_ellipse.m | .m | Udacity-Self-Driving-Car-Nanodegree-master/term2/projects/p1-extended-kalman-filter/3rdparty/mercedes/matlab_examples/error_ellipse.m | 8,077 | utf_8 | b708c77bc63c35c85ccd3f4e2363446d | function h=error_ellipse(varargin)
% ERROR_ELLIPSE - plot an error ellipse, or ellipsoid, defining confidence region
% ERROR_ELLIPSE(C22) - Given a 2x2 covariance matrix, plot the
% associated error ellipse, at the origin. It returns a graphics handle
% of the ellipse that was drawn.
%
% ERROR_ELLIPSE(C33) ... |
github | nikhil579/OBJECT_TRACKING-master | FINAL_CODE_DND.m | .m | OBJECT_TRACKING-master/FINAL_CODE_DND.m | 8,660 | utf_8 | c5184aab3e9eaa3deebb6b2d349781ea |
function multiObjectTracking()
%%
%Create System objects used for reading video, detecting moving objects, and displaying the results.
obj = setupSystemObjects();
tracks = initializeTracks(); % Create an empty array of tracks.
nextId = 1; % ID of the next track
% Detect moving objects, and track them ac... |
github | nikhil579/OBJECT_TRACKING-master | MODT_GUI.m | .m | OBJECT_TRACKING-master/MODT_GUI.m | 8,691 | utf_8 | bf36a66f71c7ef01a814015d747cebe3 | function MODT()
%%
%Create System objects used for reading video, detecting moving objects, and displaying the results.
obj = setupSystemObjects();
tracks = initializeTracks(); % Create an empty array of tracks.
nextId = 1; % ID of the next track
% Detect moving objects, and track them across video frames.
... |
github | hjimce/caffeclion-master | classification_demo.m | .m | caffeclion-master/caffe/matlab/demo/classification_demo.m | 5,412 | utf_8 | 8f46deabe6cde287c4759f3bc8b7f819 | function [scores, maxlabel] = classification_demo(im, use_gpu)
% [scores, maxlabel] = classification_demo(im, use_gpu)
%
% Image classification demo using BVLC CaffeNet.
%
% IMPORTANT: before you run this demo, you should download BVLC CaffeNet
% from Model Zoo (http://caffe.berkeleyvision.org/model_zoo.html)
%
% *****... |
github | keithfma/evenly_spaced_streamlines-master | arrow.m | .m | evenly_spaced_streamlines-master/arrow.m | 59,561 | utf_8 | c7638a77607ba7fa39d3d641f7bd4ce7 | function [h,yy,zz] = arrow(varargin)
% ARROW Draw a line with an arrowhead.
%
% ARROW(Start,Stop) draws a line with an arrow from Start to Stop (points
% should be vectors of length 2 or 3, or matrices with 2 or 3
% columns), and returns the graphics handle of the arrow(s).
%
% ARROW uses the mouse (cl... |
github | keithfma/evenly_spaced_streamlines-master | even_stream_data.m | .m | evenly_spaced_streamlines-master/even_stream_data.m | 7,805 | utf_8 | c273f20a85689fdd8037af47f73533d2 | function [xy, dist] = even_stream_data(xx, yy, uu, vv, min_density, max_density)
% [xy, dist] = even_stream_data(xx, yy, uu, vv, min_density, max_density)
%
% Return evenly-spaced streamlines, and optionally minimum distance to
% neighboring lines.
%
% Required Arguments:
% xx, yy: Matrices or vectors, x-coord... |
github | iN1k1/Sparse-Re-Identification-master | extract_features.m | .m | Sparse-Re-Identification-master/src/extract_features.m | 9,027 | utf_8 | c02c53c5ca3575b6e9b85a4862571009 | function [ features ] = extract_features( dataset, pars )
fprintf('Extracting features...');
t = tic;
% Try to load data
featuresFile = fullfile(pars.settings.dataFolder, [pars.settings.outputPrefix '_features.mat']);
if exist(featuresFile, 'file')
load(featuresFile);
else
% Patch size and #
regionSi... |
github | iN1k1/Sparse-Re-Identification-master | split_dataset.m | .m | Sparse-Re-Identification-master/src/split_dataset.m | 19,967 | utf_8 | 878c5fcb2721cfcff4ae2e32dec1a475 | function [train, cv, test] = split_dataset( dataset, pars )
fprintf('Splitting dataset...');
tt = tic;
% Try to load data
splitsFile = fullfile(pars.settings.dataFolder, [pars.settings.outputPrefix '_split.mat']);
if exist(splitsFile, 'file')
load(splitsFile);
else
% Loop through all transformations... |
github | iN1k1/Sparse-Re-Identification-master | extract_features_image.m | .m | Sparse-Re-Identification-master/src/NMLib/extract_features_image.m | 3,399 | utf_8 | eef42103ee99732da3d58f4a6463f78b | function [features, patches] = extract_features_image(image, regions, availableFeatures, pars)
% Convert to double!
if ~NM_isdouble(image)
image = im2double(image);
end
%-------------------------
% Init tracked patch accumulated features array
[ff, pp] = get_features_from_regions(image, regions(1,:), ava... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.