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
isetbio/isetbio-master
ieDeleteValidationFile.m
.m
isetbio-master/validation/ieDeleteValidationFile.m
1,847
utf_8
585b879a6fe83bdb81f1849004223543
function ieDeleteValidationFile % ieDeleteValidationFile % %% Utility to remove one validation ground truth data set (both fast and full) % Which project thisProject = 'isetbio'; validationFileToBeDeleted = selectValidationFile(thisProject); list = rdtListLocalArtifacts(... getpref(thisProject, 'remoteDataToolbo...
github
isetbio/isetbio-master
v_stockman2xyz.m
.m
isetbio-master/validation/scripts/color/v_stockman2xyz.m
19,628
utf_8
dae163775b580bad56296bb94fd02446
function varargout = v_stockman2xyz(varargin) % % Test that colorTransformMatrix does the right thing for Stockman-Sharpe to XYZ and back. % % 4/16/15 dhb Added a few more comparisons. Not really needed. These % were part of trying to track down an issue that in the end was related to % ...
github
isetbio/isetbio-master
v_Colorimetry.m
.m
isetbio-master/validation/scripts/color/v_Colorimetry.m
14,392
utf_8
99cf1c3fce710cc172f27f28536385ed
function varargout = v_Colorimetry(varargin) % % Validate ISETBIO-based colorimetric computations by comparing to PTB-based colorimetric computations. % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationF...
github
isetbio/isetbio-master
v_sceneFromRGB.m
.m
isetbio-master/validation/scripts/scene/v_sceneFromRGB.m
4,512
utf_8
554646ed9439ac6a196cc8434e5f5f9a
function varargout = v_sceneFromRGB(varargin) % Test creating a scene from image rgb data using the sceneFromFile % function % % The sceneFromFile logic is this: % % 1) the rgb data and the spectral power distributions (spds) of the % display color primaries are used to calculate the spectral radiance of % the disp...
github
isetbio/isetbio-master
v_sceneReIllumination.m
.m
isetbio-master/validation/scripts/scene/v_sceneReIllumination.m
7,608
utf_8
ec65e2374750f87ce39e75a7a2233a18
function varargout = v_sceneReIllumination(varargin) % % Validate changes in scene illuminant. % % Start with a Macbeth image illuminated under a D65 illuminant. % Then re-illuminate using a flusorescent illuminant of equal luminance. % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin...
github
isetbio/isetbio-master
v_sceneExamples.m
.m
isetbio-master/validation/scripts/scene/v_sceneExamples.m
3,795
utf_8
1dbb6d0f555f1a51dcb82b5c39d77ec3
function varargout = v_sceneExamples(varargin) % % Illustrate and test the types of synthetic scenes. % % These synthetic scenes are useful for testing different features of the % optics and sensors. % % Copyright ImagEval Consultants, LLC, 2003. varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, ...
github
isetbio/isetbio-master
v_sceneoiSpatialResample.m
.m
isetbio-master/validation/scripts/scene/v_sceneoiSpatialResample.m
6,754
utf_8
4200abbe0885c15210572bd376b47466
function varargout = v_sceneoiSpatialResample(varargin) % % Check spatial resample of a scene and an oi % % This script validates the spatial resampling of the scene and oi photon data. % % BW, NPC Copyright ISETBIO Team 2016 % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end func...
github
isetbio/isetbio-master
v_sceneHCCompress.m
.m
isetbio-master/validation/scripts/scene/v_sceneHCCompress.m
2,446
utf_8
6e0b417c12243bd34f6ccd3a53626981
function varargout = v_sceneHCCompress(varargin) % % Validate hyperspectral scene data and compression % % Uses linear model compression. % % Copyright ImagEval Consultants, LLC, 2012 varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Here is the actual code function Validation...
github
isetbio/isetbio-master
v_wvfComputeConePSF.m
.m
isetbio-master/validation/scripts/wavefront/v_wvfComputeConePSF.m
17,572
utf_8
c80c3a50b1781cd4fb0bc5528679fd82
function varargout = v_wvfComputeConePSF(varargin) % % Test the routines that compute L, M, and S cone PSFs from Zernike coefficients. % % Replicates figures from % Autrusseau et al., 2011, Vision Research, 51, 2282-2294. % % The diffraction limited calcs seem to match up with their % Figure 2 pretty well, the MTFs a...
github
isetbio/isetbio-master
v_wvfSpatialSampling.m
.m
isetbio-master/validation/scripts/wavefront/v_wvfSpatialSampling.m
3,196
utf_8
6fd2ce96df8585159459daf001f54f3a
function varargout = v_wvfSpatialSampling(varargin) % % Check consistency of wavefront calcs across different spatial sampling parameters. % % If this is working, all of the points should fall on the lines in the graph. % % There is an issue of normalization that we need to think about. Normalize % psf's so that they i...
github
isetbio/isetbio-master
v_wvfZernikePolynomials.m
.m
isetbio-master/validation/scripts/wavefront/v_wvfZernikePolynomials.m
3,619
utf_8
ce221dbe91eee501ecac405e7b2694e5
function varargout = v_wvfZernkePolynomials(varargin) % % Test that single Zernike coeffs produce correct wavefront aberrations. % % Make plots of the wavefront aberrations we get for single Zernike coefficients. % These ought to match up with standard pictures of the Zernike pyramid. % % The problem is that pictures e...
github
isetbio/isetbio-master
v_wvfDiffractionPSF.m
.m
isetbio-master/validation/scripts/wavefront/v_wvfDiffractionPSF.m
10,232
utf_8
4395b8ac05c81652fb74f77053e8bb59
function varargout = v_wvfDiffractionPSF(varargin) % % Checks that diffraction-limited PSFs are correct. % % Compares monochromatic PSFs computed from Zernike coefficients in this % toolbox with those in PTB and ISET. The curves/points in each lineplot % figure should overlay. % % At the end, we calculate a slice thro...
github
isetbio/isetbio-master
v_oi.m
.m
isetbio-master/validation/scripts/optics/v_oi.m
1,816
utf_8
89e8e70b17ff6c5d03dff858a3c2775d
function varargout = v_oi(varargin) % % Test optical image creating functions % % Implicitly tests the opticsCreate functions, as well. % % Copyright Imageval LLC, 2009 varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code func...
github
isetbio/isetbio-master
v_oiTransmittance.m
.m
isetbio-master/validation/scripts/optics/v_oiTransmittance.m
1,202
utf_8
5717b6512a5f8edf8104dc41464c18fb
function varargout = v_oiTransmittance(varargin) % % Validate some of the optical image transmittance calculations varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationFunction(runTimeParams) ieInit; %% Human optic...
github
isetbio/isetbio-master
v_oiSequence.m
.m
isetbio-master/validation/scripts/outersegment/v_oiSequence.m
2,761
utf_8
45024a07578e4e8d124a2595e4e4c9fb
function varargout = v_oiSequence(varargin) % % Validate simulations using the oiSequence method % % * Create a small oiSequence % * Check the coneMosaic % * Adjust the time base of the oiSequence and repeat % % The purpose is to show that we can vary the oiSequence time base and the % cMosaic integration time and...
github
isetbio/isetbio-master
v_osTimeStep.m
.m
isetbio-master/validation/scripts/outersegment/v_osTimeStep.m
25,533
utf_8
2d9f52620ab1f1c7ae51040090218070
function varargout = v_osTimeStep(varargin) % % Demonstrate simulations using three different timebases, % For stimuli (based on stimulus refresh rate), % For absorptions and eye movements (based on coneMosaic.integrationTime) % For outer segment current computations (based on os.timeStep) % % Mainly, we ca...
github
isetbio/isetbio-master
v_osEMData.m
.m
isetbio-master/validation/scripts/outersegment/v_osEMData.m
9,374
utf_8
73f5fb0a45bf5cd96fad0c0329eabeeb
function varargout = v_osEMData(varargin) % % Check os models against neural data (simulating eye movements) % % This script tests the linear and biophysical outer segment models of photon % isomerizations to photocurrent transduction in the cone outer segments. % The simulation is compared with a recording sesssion th...
github
isetbio/isetbio-master
v_osStepFlash.m
.m
isetbio-master/validation/scripts/outersegment/v_osStepFlash.m
13,282
utf_8
b9d6c18f57e6aaa47e7fd55213b1c2e5
function varargout = v_osStepFlash(varargin) % % Validate the os models for very brief flashes on different pedestals. % % This script tests the linear and biophysical outer segment models of % photon isomerizations to photocurrent transduction that occurs in the % cone outer segments. It computes responses for brief...
github
isetbio/isetbio-master
v_osLinearFilters.m
.m
isetbio-master/validation/scripts/outersegment/v_osLinearFilters.m
7,818
utf_8
2e19145e531760332acdef78f01f83c3
function varargout = v_osLinearFilters(varargin) % % Compute linearFilters at different os.timeSteps and luminance levels % % NPC, ISETBIO TEAM, 2016 varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationFunction(...
github
isetbio/isetbio-master
v_osIncDec.m
.m
isetbio-master/validation/scripts/outersegment/v_osIncDec.m
13,525
utf_8
13f59a57e59714f88796397456b08257
function varargout = v_osIncDec(varargin) % % Validate the os models for light increment and decrement stimuli % % This script tests the linear and biophysical outer segment models of % photon isomerizations to photocurrent transduction that occurs in the % cone outer segments. This is for steps (1.5 sec), both incre...
github
isetbio/isetbio-master
v_osStep.m
.m
isetbio-master/validation/scripts/outersegment/v_osStep.m
8,514
utf_8
41937c86d6571a7aeded9bc6670f427c
function varargout = v_osStep(varargin) % % Validate the cone outer segment models against neural data (step stimuli) % % This script tests the linear and biophysical outer segment models of % photon isomerizations to photocurrent transduction that occurs in the % cone outer segments, for recordings of response to li...
github
isetbio/isetbio-master
v_numericalPrecision.m
.m
isetbio-master/validation/scripts/codedevscripts/v_numericalPrecision.m
3,826
utf_8
748a96a29d830e75225b28821a4f6fdf
function varargout = v_numericalPrecision(varargin) % % Script assessing the effects of rounding at different numerical precisions. % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationFunction(runTimeParams) ...
github
isetbio/isetbio-master
v_vcSESSION.m
.m
isetbio-master/validation/scripts/codedevscripts/v_vcSESSION.m
692
utf_8
0ead6abb5b3603c00be6e0166514cb93
function varargout = v_vcSESSION(varargin) % % Tests the ieAddObject function % % Copyright Imageval LLC, 2018 %{ v_vcSESSION; %} varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationFunction(runTimeParams) %% Init...
github
isetbio/isetbio-master
v_skeleton.m
.m
isetbio-master/validation/scripts/codedevscripts/v_skeleton.m
3,336
utf_8
93af93f57377e57f82a4ebaa22aa4167
function varargout = v_skeleton(varargin) % % Skeleton script containing the minimally required code. Copy and add your ISETBIO validation code. % % [THE ONE LINE COMMENT ABOVE WILL GET AUTOPUBLISHED AS THE DESCRIPTION OF % THIS SCRIPT.] varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin)...
github
isetbio/isetbio-master
v_fundamentalValidationFailure.m
.m
isetbio-master/validation/scripts/codedevscripts/v_fundamentalValidationFailure.m
876
utf_8
239a2c7fe388b49fa2f0ddb99b5eb150
function varargout = v_fundamentalValidationFailure(varargin) % % Example validation script that demonstrates usage of the fundemantal failure feature. % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationFunc...
github
isetbio/isetbio-master
v_runTimeError.m
.m
isetbio-master/validation/scripts/codedevscripts/v_runTimeError.m
638
utf_8
15f15dad67c18134685d6c1713639ffa
function varargout = v_runTimeError(varargin) % % Example validation script that simulates runtime exemption. % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing the isetbio validation code function ValidationFunction(runTimeParams) error('Simul...
github
isetbio/isetbio-master
v_rgcPillowModelGainCheck.m
.m
isetbio-master/validation/scripts/rgc/v_rgcPillowModelGainCheck.m
1,690
utf_8
b4d63657c1ecff7179003c3fb66d5ad3
function varargout = v_rgcPillowModelGainCheck(varargin) %v_rgcPillowModelGainCheck Validate features of the Pillow RGC model. % % Description: % Validate features of the Pillow RGC model. Currently checks gain. % TRG asserts that this should always be one, independent of sampling % rate. Currently, this is not...
github
isetbio/isetbio-master
v_IrradianceIsomerizations.m
.m
isetbio-master/validation/scripts/radiometry/v_IrradianceIsomerizations.m
18,936
utf_8
9b6759048f90258e1d5c86b9ad1127fc
function varargout = v_IrradianceIsomerizations(varargin) % % Validate ISETBIO-based irradiance/isomerization computations by comparing to PTB-based irradiance/isomerization computations. % % See also: v_Cones % % Minor issues: % % 1) The irradiance calculations agree to about 1%, once the difference in % how isetbio a...
github
isetbio/isetbio-master
v_eyeMovementsPhysio.m
.m
isetbio-master/validation/scripts/eyemovements/v_eyeMovementsPhysio.m
30,885
utf_8
6096b98ebb592d2bc565384f7a72323b
function varargout = v_eyeMovementsPhysio(varargin) % Deprecated % % This tests the HJ eye movement model, not the new fixational eye movement % model. disp('*** v_eyeMovementsPhysio needs to be re-written for fixational EM ***'); return; end %{ % Parameters to examine. params = struct(... 'mosaicType', 'hexRegDef...
github
isetbio/isetbio-master
v_DisplayColorConversion.m
.m
isetbio-master/validation/scripts/display/v_DisplayColorConversion.m
14,703
utf_8
4220a3d7c571761872e4478a23d0be6b
function varargout = v_DisplayColorConversion(varargin) % % Validate display calibration color conversion against PTB. Oddly enough, this also does some checking of LUT inversion. % % ISETBIO and PTB agree well on this calculation. % % See also v_IrradianceIsomerizations, v_DisplayLUTInversion varargout = UnitTest.ru...
github
isetbio/isetbio-master
v_PTBcalStructToIsetbioDisplayObjectAndBack.m
.m
isetbio-master/validation/scripts/display/v_PTBcalStructToIsetbioDisplayObjectAndBack.m
4,142
utf_8
155041dd36e828b477e4fffeb03bc02c
function varargout = v_PTBcalStructToIsetbioDisplayObjectAndBack(varargin) % % Validate conversion of PTBcalStruct to isetbio display object and back. % This compares the PTB reconstruction after conversion into isetbio and % back with the originally read PTB cal stucture. % % See also v_IrradianceIsomerizations, v_Dis...
github
isetbio/isetbio-master
v_DisplayLUTinversion.m
.m
isetbio-master/validation/scripts/display/v_DisplayLUTinversion.m
8,889
utf_8
b408ad37dd2390039934e7b79c84f5d1
function varargout = v_DisplayLUTinversion(varargin) % % Validate display calibration lut inversion against PTB. % % The two don't give exactly the same results, as the inversion methods % are not identical. In particular, the PTB routines, the way we are calling % them here, fit the gamma function with a power functi...
github
isetbio/isetbio-master
v_OTFandPupilSize.m
.m
isetbio-master/validation/scripts/human/v_OTFandPupilSize.m
14,363
utf_8
00207f47aa199276242ba4999e767f3d
function varargout = v_OTFandPupilSize(varargin) % % Validate the ISETBIO's OTF as a function of pupil size by comparing it to the Watson (2013) OTF model. % "A formula for the mean human optical modulation transfer function as a function of pupil size". % http://www.journalofvision.org/content/13/6/18.short?related-u...
github
isetbio/isetbio-master
v_HumanRetinalIlluminance580nm.m
.m
isetbio-master/validation/scripts/human/v_HumanRetinalIlluminance580nm.m
4,044
utf_8
825f7f3be49fd9777070a4b1bd232829
function varargout = v_HumanRetinalIlluminance580nm(varargin) % % Validate photon flux measurements with assertions from Ed Pugh. % % Ed says that a photon flux of 10^15 photons/cm^2/sec at 580 nm % corresponds to a retinal illuminance of 590,000 photopic trolands. He % wrote a document (Pugh_Summary_for_FFB.pdf) asse...
github
isetbio/isetbio-master
v_Cones.m
.m
isetbio-master/validation/scripts/cones/v_Cones.m
7,976
utf_8
2c3a619a1552ca5637444d9d40305d14
function varargout = v_Cones(varargin) % % Test cone, lens and macular function calls. Compare against PTB answers. % % See also v_IrradianceIsomerizations. % % Issues: % % 1) It might be nice to test some sets as well as gets, and show how to % take a customized set of parameters from PTB and get these parameters to ...
github
isetbio/isetbio-master
v_cmCurrentImpulse.m
.m
isetbio-master/validation/scripts/cones/v_cmCurrentImpulse.m
2,460
utf_8
3da7e44d5277393d73ec95d9aa9c5a18
function varargout = v_cmCurrentImpulse(varargin) % % Cone mosaic photocurrent impulse response calculations. % % We will systematically change parameters and see that the results are stable. % % BW, ISETBIO Team Copyright 2016 varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Fun...
github
isetbio/isetbio-master
v_cmosaic.m
.m
isetbio-master/validation/scripts/cones/v_cmosaic.m
1,690
utf_8
66eca728bf49b4f3183d074eb8cd8759
function varargout = v_cmosaic(varargin) % % Simple rectangular cone mosaic calculation. % % We will systematically change parameters and see that the results are stable. % % BW, ISETBIO Team Copyright 2016 varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end %% Function implementing t...
github
isetbio/isetbio-master
v_sceneFromRGB_debug2.m
.m
isetbio-master/validation/scripts/debug/v_sceneFromRGB_debug2.m
4,383
utf_8
b3f085208fb75dbf84a3518073231748
function varargout = v_sceneFromRGB(varargin) % Test how isetbio creates a scene from an rgb data using sceneFromFile % % Function sceneFromFile uses 1) the rgb data and the spectral power % distributions (spds) of the display color primaries to calculate the % spectral radiance of the displayed image, and 2) the spect...
github
isetbio/isetbio-master
v_sceneFromRGB_debug1.m
.m
isetbio-master/validation/scripts/debug/v_sceneFromRGB_debug1.m
4,383
utf_8
0107d7bb9b9abe30e277579d3978a81c
function varargout = v_sceneFromRGB(varargin) % Test how isetbio creates a scene from an rgb data using sceneFromFile % % Function sceneFromFile uses 1) the rgb data and the spectral power % distributions (spds) of the display color primaries to calculate the % spectral radiance of the displayed image, and 2) the spect...
github
isetbio/isetbio-master
v_sceneFromRGB_debug0.m
.m
isetbio-master/validation/scripts/debug/v_sceneFromRGB_debug0.m
4,383
utf_8
8d6db1153d8d769c63381637fb601b0f
function varargout = v_sceneFromRGB(varargin) % Test how isetbio creates a scene from an rgb data using sceneFromFile % % Function sceneFromFile uses 1) the rgb data and the spectral power % distributions (spds) of the display color primaries to calculate the % spectral radiance of the displayed image, and 2) the spect...
github
isetbio/isetbio-master
v_sceneFromRGB_debug3.m
.m
isetbio-master/validation/scripts/debug/v_sceneFromRGB_debug3.m
4,383
utf_8
a0b819001115f4ad6ca28f0324346505
function varargout = v_sceneFromRGB(varargin) % Test how isetbio creates a scene from an rgb data using sceneFromFile % % Function sceneFromFile uses 1) the rgb data and the spectral power % distributions (spds) of the display color primaries to calculate the % spectral radiance of the displayed image, and 2) the spect...
github
isetbio/isetbio-master
v_sceneFromRGB_debug4.m
.m
isetbio-master/validation/scripts/debug/v_sceneFromRGB_debug4.m
4,383
utf_8
906f392c53c1ba8785bb291e67f08a33
function varargout = v_sceneFromRGB(varargin) % Test how isetbio creates a scene from an rgb data using sceneFromFile % % Function sceneFromFile uses 1) the rgb data and the spectral power % distributions (spds) of the display color primaries to calculate the % spectral radiance of the displayed image, and 2) the spect...
github
isetbio/isetbio-master
v_sceneFromRGB_debug5.m
.m
isetbio-master/validation/scripts/debug/v_sceneFromRGB_debug5.m
4,383
utf_8
218d0538290178c8da12392b4867c7ae
function varargout = v_sceneFromRGB(varargin) % Test how isetbio creates a scene from an rgb data using sceneFromFile % % Function sceneFromFile uses 1) the rgb data and the spectral power % distributions (spds) of the display color primaries to calculate the % spectral radiance of the displayed image, and 2) the spect...
github
isetbio/isetbio-master
v_rdt.m
.m
isetbio-master/validation/scripts/xNeedChecking/remoteData/v_rdt.m
619
utf_8
6433d5c278ec47ae3b742749c99acb8c
function varargout = v_rdt(varargin) % % Validate ISETBIO-based colorimetric computations by comparing to PTB-based colorimetric computations. % varargout = UnitTest.runValidationRun(@ValidationFunction, nargout, varargin); end function ValidationFunction(runTimeParams) %% Test remote data toolbox access rd = R...
github
isetbio/isetbio-master
testOTF.m
.m
isetbio-master/validation/scripts/xNeedChecking/opticalImage/testOTF.m
5,476
utf_8
650026fda9dea6b9bd7b2dcec0cd4123
function testOTF s_initISET; h1 = figure(1); set(h1, 'Position', [100 100 650 760]); clf; h2 = figure(2); set(h2, 'Position', [200 200 650 760]); clf; % Pupil diameters to test pupilDiametersInMillimeters = (2:0.5:6.5); %pupilDiametersInMillimeters = (4.0:0.5:6); ...
github
isetbio/isetbio-master
ieWebGet.m
.m
isetbio-master/isetcore/ieWebGet.m
11,144
utf_8
770330012c1a7d6780e3110a7791fa53
function localFile = ieWebGet(varargin) %% Download a resource from the Stanford web site % % Synopsis % localFile = ieWebGet(varargin) % % Brief description % Download an ISET zip or mat-file file from the web. The type of file % and the remote file name define how to get the file. % % Inputs % 'browse','list',...
github
isetbio/isetbio-master
lms2lmsDichromat.m
.m
isetbio-master/isetcore/color/transforms/lms2lmsDichromat.m
10,799
utf_8
5bc0e710f46ca8d806371d6034b74d64
function LMS = lms2lmsDichromat(LMS, cbType, method, varargin) % Interpolate missing cone values for colorblind in cone color space (LMS) % % Syntax: % LMS = lms2lmsDichromat(LMS, [cbType], [method], [varargin]) % % Description: % Interpolate missing cone values for colorblind in cone color space % % The estima...
github
isetbio/isetbio-master
synchronizeISETBIOWithRepository.m
.m
isetbio-master/external/synchronizeISETBIOWithRepository.m
7,989
utf_8
68d9091507b30a2d743b793e7f0bf0bf
% Function to synchronize external functions in isetbio with their origins. % % Examples are provided in the code. % % 11/20/2014 npc Wrote it. % 4/27/2015 npc Modification to support synchronization of any repository with isetbio, not just PTB % % Examples: %{ % ETTBSkip % Running these can get you ...
github
isetbio/isetbio-master
EllipsoidTest.m
.m
isetbio-master/external/brainardlabtoolbox/Ellipsoids/EllipsoidTest.m
2,995
utf_8
91304ef3813277362f544aa0fe00f48d
function EllipsoidTest % EllipsoidTest % % Test the ellipsoid code % % 6/27/16 dhb Wrote it. %% Clear clear; close all; %% Generate points on unit sphere for simulating data nTheta = 10; nPhi = 10; xSphere = UnitSphereGenerate(nTheta,nPhi); figure; clf; hold on plot3(xSphere(1,:),xSphere(2,:),xSphere(3,:),'ro','Mar...
github
isetbio/isetbio-master
EllipsoidFit.m
.m
isetbio-master/external/brainardlabtoolbox/Ellipsoids/EllipsoidFit.m
4,379
utf_8
1db5e663c482f8244f76315b63a5d814
function [A,Ainv,Q,ellParamsFit] = EllipsoidFit(x,ellParams0,fitCenterOffset,isXYEllipse) % Fit an ellipsoid (or ellipse) to data % % Syntax % [A,Ainv,Q,ellParamsFit] = EllipsoidFit(x,[ellParams0],[offset]) % % Description: % Find the ellipsoid that goes through a set of passed points in the % columns of ma...
github
isetbio/isetbio-master
FitEllipseQ.m
.m
isetbio-master/external/brainardlabtoolbox/Ellipsoids/FitEllipseQ.m
11,494
utf_8
a20800ccd085b7e114cde511d7724df9
function [ellParams,AConstraint,Ainv,Q,fitErr] = FitEllipseQ(theData,varargin) % Fit an ellipse to points % % Syntax: % [ellParams,AConstraint,Ainv,Q] = FitEllipseQ(theData) % % Description: % Fit an ellipse to points. The fit error minimized is the RMSE % of radial length difference in the directions of each...
github
isetbio/isetbio-master
pdftops.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/pdftops.m
3,186
utf_8
6d98bc96a6c451245ad6400431e8bee1
function varargout = pdftops(cmd) %PDFTOPS Calls a local pdftops executable with the input command % % Example: % [status result] = pdftops(cmd) % % Attempts to locate a pdftops executable, finally asking the user to % specify the directory pdftops was installed into. The resulting path is % stored for futur...
github
isetbio/isetbio-master
crop_borders.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/crop_borders.m
1,750
utf_8
0893357fafdc2893c4fb22a136f6898a
%CROP_BORDERS Crop the borders of an image or stack of images % % [B, v] = crop_borders(A, bcol, [padding]) % %IN: % A - HxWxCxN stack of images. % bcol - Cx1 background colour vector. % padding - scalar indicating how many pixels padding to have. Default: 0. % %OUT: % B - JxKxCxN cropped stack of i...
github
isetbio/isetbio-master
isolate_axes.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/isolate_axes.m
3,787
utf_8
453f95309059c464d4388c2e6c56d249
%ISOLATE_AXES Isolate the specified axes in a figure on their own % % Examples: % fh = isolate_axes(ah) % fh = isolate_axes(ah, vis) % % This function will create a new figure containing the axes/uipanels % specified, and also their associated legends and colorbars. The objects % specified must all be in th...
github
isetbio/isetbio-master
im2gif.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/im2gif.m
6,234
utf_8
8ee74d7d94e524410788276aa41dd5f1
%IM2GIF Convert a multiframe image to an animated GIF file % % Examples: % im2gif infile % im2gif infile outfile % im2gif(A, outfile) % im2gif(..., '-nocrop') % im2gif(..., '-nodither') % im2gif(..., '-ncolors', n) % im2gif(..., '-loops', n) % im2gif(..., '-delay', n) % % This function c...
github
isetbio/isetbio-master
read_write_entire_textfile.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/read_write_entire_textfile.m
961
utf_8
775aa1f538c76516c7fb406a4f129320
%READ_WRITE_ENTIRE_TEXTFILE Read or write a whole text file to/from memory % % Read or write an entire text file to/from memory, without leaving the % file open if an error occurs. % % Reading: % fstrm = read_write_entire_textfile(fname) % Writing: % read_write_entire_textfile(fname, fstrm) % %IN: % fn...
github
isetbio/isetbio-master
pdf2eps.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/pdf2eps.m
1,522
utf_8
4c8f0603619234278ed413670d24bdb6
%PDF2EPS Convert a pdf file to eps format using pdftops % % Examples: % pdf2eps source dest % % This function converts a pdf file to eps format. % % This function requires that you have pdftops, from the Xpdf suite of % functions, installed on your system. This can be downloaded from: % http://www.foolabs.c...
github
isetbio/isetbio-master
print2array.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/print2array.m
6,471
utf_8
d3a6a535e6e7cd87b093870d949003b6
%PRINT2ARRAY Exports a figure to an image array % % Examples: % A = print2array % A = print2array(figure_handle) % A = print2array(figure_handle, resolution) % A = print2array(figure_handle, resolution, renderer) % [A bcol] = print2array(...) % % This function outputs a bitmap image of the given fig...
github
isetbio/isetbio-master
append_pdfs.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/append_pdfs.m
2,068
utf_8
1e97e9c2cadd89753e3402105347bedb
%APPEND_PDFS Appends/concatenates multiple PDF files % % Example: % append_pdfs(output, input1, input2, ...) % append_pdfs(output, input_list{:}) % append_pdfs test.pdf temp1.pdf temp2.pdf % % This function appends multiple PDF files to an existing PDF file, or % concatenates them into a PDF file if the o...
github
isetbio/isetbio-master
using_hg2.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/using_hg2.m
549
utf_8
cd37c33c7e218b4d40ccf8d0738fefb8
%USING_HG2 Determine if the HG2 graphics pipeline is used % % tf = using_hg2(fig) % %IN: % fig - handle to the figure in question. % %OUT: % tf - boolean indicating whether the HG2 graphics pipeline is being used % (true) or not (false). % % 12/19/15 dhb Modified for 2016b, can't use graphicsv...
github
isetbio/isetbio-master
eps2pdf.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/eps2pdf.m
5,143
utf_8
cd07d7984e39ef75ff3df49305770c4e
%EPS2PDF Convert an eps file to pdf format using ghostscript % % Examples: % eps2pdf source dest % eps2pdf(source, dest, crop) % eps2pdf(source, dest, crop, append) % eps2pdf(source, dest, crop, append, gray) % eps2pdf(source, dest, crop, append, gray, quality) % % This function converts an eps file...
github
isetbio/isetbio-master
copyfig.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/copyfig.m
845
utf_8
bf21447d5aa8f9a873cf45bc0c03cef0
%COPYFIG Create a copy of a figure, without changing the figure % % Examples: % fh_new = copyfig(fh_old) % % This function will create a copy of a figure, but not change the figure, % as copyobj sometimes does, e.g. by changing legends. % % IN: % fh_old - The handle of the figure to be copied. Default: gc...
github
isetbio/isetbio-master
user_string.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/user_string.m
2,460
utf_8
e8aa836a5140410546fceccb4cca47aa
%USER_STRING Get/set a user specific string % % Examples: % string = user_string(string_name) % saved = user_string(string_name, new_string) % % Function to get and set a string in a system or user specific file. This % enables, for example, system specific paths to binaries to be saved. % % IN: % string_name - ...
github
isetbio/isetbio-master
export_fig.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/export_fig.m
30,519
utf_8
5ae1176795058daa1079bb1cb10a3cc1
%EXPORT_FIG Exports figures suitable for publication % % Examples: % im = export_fig % [im alpha] = export_fig % export_fig filename % export_fig filename -format1 -format2 % export_fig ... -nocrop % export_fig ... -transparent % export_fig ... -native % export_fig ... -m<val> % export_fig...
github
isetbio/isetbio-master
ghostscript.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/ghostscript.m
5,167
utf_8
e274d22dbcaa074e52b4567ad806444d
%GHOSTSCRIPT Calls a local GhostScript executable with the input command % % Example: % [status result] = ghostscript(cmd) % % Attempts to locate a ghostscript executable, finally asking the user to % specify the directory ghostcript was installed into. The resulting path % is stored for future reference. % ...
github
isetbio/isetbio-master
fix_lines.m
.m
isetbio-master/external/brainardlabtoolbox/Plotting/export_fig/fix_lines.m
5,902
utf_8
9189079deae83ff822d2b4a02744e2fd
%FIX_LINES Improves the line style of eps files generated by print % % Examples: % fix_lines fname % fix_lines fname fname2 % fstrm_out = fixlines(fstrm_in) % % This function improves the style of lines in eps files generated by % MATLAB's print function, making them more similar to those seen on % scre...
github
isetbio/isetbio-master
combineContainersMat.m
.m
isetbio-master/external/brainardlabtoolbox/ContainerUtils/combineContainersMat.m
4,229
utf_8
ba2c10f59aa10ccd688155a499a7e43f
function outContainer = combineContainersMat(theCellArrayOfContainers) % Consolidate a cell array of containers of matrices into a container of a matrix. % % Syntax: % outContainer = combineContainersMat(theCellArrayOfContainers) % % Description: % Take a cell array of containers, each of which contains a matrix...
github
isetbio/isetbio-master
combineContainers.m
.m
isetbio-master/external/brainardlabtoolbox/ContainerUtils/combineContainers.m
4,266
utf_8
de2c51b7a404873102b91fe0e11f762c
function outContainer = combineContainers(theCellArrayOfContainers) % Consolidate cell array of containers into a container of a cell array. % % Syntax: % outContainer = combineContainers(theCellArrayOfContainers) % % Description: % Function that takes a cell array of containers and returns a single % contain...
github
isetbio/isetbio-master
fitellipse.m
.m
isetbio-master/external/brainardlabtoolbox/Ellipses/fitellipse.m
12,469
utf_8
de2ab60619feaf80ff407ba1737dc26f
function [z, a, b, alpha] = fitellipse(x, varargin) %FITELLIPSE least squares fit of ellipse to 2D data % % [Z, A, B, ALPHA] = FITELLIPSE(X) % Fit an ellipse to the 2D points in the 2xN array X. The ellipse is % returned in parametric form such that the equation of the ellipse % parameterise...
github
isetbio/isetbio-master
visualizeParamsStructTree.m
.m
isetbio-master/external/brainardlabtoolbox/StructUtils/visualizeParamsStructTree.m
3,415
utf_8
a29d52a74129d60eba3f594f5a49c05f
% Method to display all subfields of the params struct function visualizeParamsStructTree(params, structName) displayStruct(params, structName, '', 60) end function s = displayStruct(datum, datumName, s, maxFieldWidth) a = whos; theOldStruct = a(1).name; dots = find(datumName=='.'); if numel(dots)...
github
isetbio/isetbio-master
RecursivelyCompareStructs.m
.m
isetbio-master/external/brainardlabtoolbox/StructUtils/RecursivelyCompareStructs.m
25,889
utf_8
a3f1aa3a04c8f512b9390ca9db30ada7
function result = RecursivelyCompareStructs(struct1Name, struct1, struct2Name, struct2, varargin) % result = RecursivelyCompareStructsTests(struct1Name, struct1, struct2Name, struct2, varargin) % % Method to compare nested structs with arbitrary internal organization. % Key/value pairs % 'defaultTolerance', a numeric v...
github
isetbio/isetbio-master
setExistingFieldsInStruct.m
.m
isetbio-master/external/brainardlabtoolbox/StructUtils/setExistingFieldsInStruct.m
871
utf_8
c899420b71956aa3a5d8b94c7e971bc9
% Method to set deepest fields of a struct/substruct by ensuring that % the fields being set already exist in the struct. % Usage: params = setExistingFieldsInStruct(params, ... % { 'field1', field1Value; ... % 'field2', field2Value; ... % ... % 'fi...
github
isetbio/isetbio-master
cpuinfo.m
.m
isetbio-master/external/cpuinfo/cpuinfo.m
9,346
utf_8
5051c0b7bc458357ef3cb7a6080440e4
function info = cpuinfo() %CPUINFO read CPU configuration % % info = CPUINFO() returns a structure containing various bits of % information about the CPU and operating system as provided by /proc/cpu % (Unix), sysctl (Mac) or WMIC (Windows). This information includes: % * CPU name % * CPU clock speed % ...
github
isetbio/isetbio-master
mplay.m
.m
isetbio-master/external/movieplayer/mplay.m
48,103
utf_8
59ee91a5a1b33c70dbde80a138583239
function mov = mplay(varargin) %MPLAY Play a movie interactively. % MPLAY(A) opens a new movie player GUI and loads movie data % A into the player. Multiple players may be used at one time. % % MPLAY(A, FMT) explicity specifies a format string FMT for the % movie data, in case a warning from MPLAY(A) indicates...
github
isetbio/isetbio-master
CalibrateFitGamma.m
.m
isetbio-master/external/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
isetbio/isetbio-master
FitConeFundamentalsWithNomogram.m
.m
isetbio-master/external/psychtoolbox/PsychColorimetricData/FitConeFundamentalsWithNomogram.m
4,213
utf_8
df0093ecd7c7006c9abbdb7ce46f8515
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. % % Needs the ...
github
isetbio/isetbio-master
GenerateIsetbioDisplayObjectFromPTBCalStruct.m
.m
isetbio-master/external/psychtoolbox/+ptb/GenerateIsetbioDisplayObjectFromPTBCalStruct.m
7,505
utf_8
5d41d8f1ec592204534e2b93a7035e46
function displayObject = GenerateIsetbioDisplayObjectFromPTBCalStruct(displayName, calStruct, ExtraCalData, saveDisplayObject) % Generate an isetbio display object with given specifications. % % Synopsis: % displayObject = ptb.GenerateIsetbioDisplayObjectFromCalStructObject(displayName, calStruct, ExtraCalData, sa...
github
isetbio/isetbio-master
GeneratePsychToolboxCalStruct.m
.m
isetbio-master/external/psychtoolbox/+ptb/GeneratePsychToolboxCalStruct.m
6,273
utf_8
ccb71808d38652dfbc4ca8826af70b5b
% Method to generate a PTB CalStruct for a display with given properties % % Synopsis cal = ptb.GeneratePsychToolboxCalStruct; % % Description: % Generate a PTB calibration structure with default properties. Allows % passing in of some key properties as key value pairs. % % Note that PTB expects power in uni...
github
isetbio/isetbio-master
SubSampleSPDs.m
.m
isetbio-master/external/psychtoolbox/+ptb/SubSampleSPDs.m
8,297
utf_8
9c7270e62663227381825e8d877c9fc7
function [subSampledWavelengthSampling, subSampledSPDs] = SubSampleSPDs(originalS, originalSPDs, targetS, lowPassSigma, showFig) % Subsample spectral power distributions. % % Synopsis: % [subSampledWavelengthSampling, subSampledSPDs] = ptb.SubSampleSPDs(originalS, originalSPDs, targetS, lowPassSigma, showFig) % % D...
github
isetbio/isetbio-master
GeneratePTCalStructFromIsetbioDisplayObject.m
.m
isetbio-master/external/psychtoolbox/+ptb/GeneratePTCalStructFromIsetbioDisplayObject.m
3,704
utf_8
e5dbc3712cf0db2c313b64a4c0d1af58
% Generate a PTB calibration structure from an ISETBIO display object. % % Synopsis: % PTBcal = ptb.GeneratePTCalStructFromIsetbioDisplayObject(display) % % Description: % Produce a PTB calibration struct from an ISETBio display object. % % Note that the PTB power units convention is power per wavelength band...
github
isetbio/isetbio-master
Var2Str.m
.m
isetbio-master/external/psychtoolbox/PsychFiles/Var2Str.m
10,366
utf_8
6e84896b57be4592efe4649b24525436
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
isetbio/isetbio-master
CheckDirs.m
.m
isetbio-master/external/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
isetbio/isetbio-master
FileFromFolder.m
.m
isetbio-master/external/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
isetbio/isetbio-master
MunsellGriddata3.m
.m
isetbio-master/external/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
isetbio/isetbio-master
overrideBuiltInFunction.m
.m
isetbio-master/external/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
isetbio/isetbio-master
brewermap_view.m
.m
isetbio-master/external/brewermap/brewermap_view.m
10,809
utf_8
72de38d4f9386274fc218196ae7dae2f
function [map,scheme] = brewermap_view(N,scheme) % An interactive figure for ColorBrewer colormap selection. With demo! % % (c) 2014 Stephen Cobeldick % % View Cynthia Brewer's ColorBrewer colorschemes in a figure. % % * Two colorbars give the colorscheme in color and grayscale. % * A button toggles between 3D-cube and...
github
isetbio/isetbio-master
brewermap.m
.m
isetbio-master/external/brewermap/brewermap.m
21,136
utf_8
4b280a360af3d91b33bcafbdc6b0f184
function [map,num,typ] = brewermap(N,scheme) % The complete selection of ColorBrewer colorschemes (RGB colormaps). % % (c) 2014 Stephen Cobeldick % % Returns any RGB colormap from the ColorBrewer colorschemes, especially % intended for mapping and plots with attractive, distinguishable colors. % %%% Syntax (basic): % ...
github
isetbio/isetbio-master
simGLM.m
.m
isetbio-master/external/pillow/simGLM.m
4,297
utf_8
027458295b4cb96879c962418a30ef04
function [tsp,Vmem,Ispk] = simGLM(glmprs,Stim); % [tsp, Vmem,Ispk] = simGLM(glmprs,Stim); % % Compute response of glm to stimulus Stim. % % Uses time rescaling instead of Bernouli approximation to conditionally % Poisson process % % Dynamics: Filters the Stimulus with glmprs.k, passes this through a % nonlin...
github
hiweller/MBL_2015-master
edge_Otsu.m
.m
MBL_2015-master/HSI_process_scripts/edge_Otsu.m
25,935
utf_8
cc8fca9da71a9ff761422f6a69071df0
function [eout,thresh,gv_45,gh_135] = edge_Otsu(varargin) %EDGE Find edges in intensity image. % EDGE takes an intensity or a binary image I as its input, and returns a % binary image BW of the same size as I, with 1's where the function % finds edges in I and 0's elsewhere. % % EDGE supports six differ...
github
hiweller/MBL_2015-master
TiffSort.m
.m
MBL_2015-master/HSI_process_scripts/TiffSort.m
1,510
utf_8
fd4fb2eb54218c53b52c58dcbb36fb15
% function TiffSort(Date) % % directoryRead = dir(['../',Date, '/*.tif*']); % % FileID = directoryRead(1).name(1:(end-13)); % mkdir(FileID) % % for i = 1:length(directoryRead) % if length(directoryRead(i).name(1:(end-13))) == length(FileID) % if directoryRead(i).name(1:(end-13)) == FileID % m...
github
kelfenbe/speex_pnacl-master
echo_diagnostic.m
.m
speex_pnacl-master/libspeex/echo_diagnostic.m
2,076
utf_8
8d5e7563976fbd9bd2eda26711f7d8dc
% Attempts to diagnose AEC problems from recorded samples % % out = echo_diagnostic(rec_file, play_file, out_file, tail_length) % % Computes the full matrix inversion to cancel echo from the % recording 'rec_file' using the far end signal 'play_file' using % a filter length of 'tail_length'. The output is saved to 'o...
github
dagoodma/impact_alert-master
sel_camera.m
.m
impact_alert-master/matlab/Object_tracking/object_tracking/sel_camera.m
2,203
utf_8
fc786d45870502fc7eae55f7fbb6c8ca
function varargout = sel_camera(varargin) % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @sel_camera_OpeningFcn, ... 'gui_OutputFcn', @...
github
blondon/UGM-master
ind2sub_vec.m
.m
UGM-master/misc/ind2sub_vec.m
307
utf_8
70b641fdc4411f7a907efb813dfe76a1
%% Variant of ind2sub that returns all dimensions in a vector rather than as separate arguments function ind = ind2sub_vec(siz,ndx) n = length(siz); k = [1 cumprod(siz(1:end-1))]; ind = zeros(n,1); for i = n:-1:1 vi = rem(ndx-1,k(i)) + 1; vj = (ndx - vi)/k(i) + 1; ind(i) = vj; ndx = vi; end end
github
blondon/UGM-master
myProcessOptions.m
.m
UGM-master/misc/myProcessOptions.m
674
utf_8
b94d252a960faa95a3074129247619e6
function [varargout] = myProcessOptions(options,varargin) % Similar to processOptions, but case insensitive and % using a struct instead of a variable length list options = toUpper(options); for i = 1:2:length(varargin) if isfield(options,upper(varargin{i})) v = getfield(options,upper(varargin{i})); ...
github
blondon/UGM-master
UGM_CountBP.m
.m
UGM-master/UGM/misc/UGM_CountBP.m
2,742
utf_8
2b8356395b229b9c9ebea5a53e2475b1
function [imsg,omsg,convergedStatus] = UGM_CountBP(nodePot,edgePot,nodeCount,edgeCount,edgeStruct,convTol,maximize) [nNodes,nState] = size(nodePot); nEdges = size(edgePot,3); edgeEnds = edgeStruct.edgeEnds; % For simplicity, all variables must have same number of states assert(all(edgeStruct.nStates == nState), 'UGM_...
github
blondon/UGM-master
UGM_ConvexBetheCounts.m
.m
UGM-master/UGM/misc/UGM_ConvexBetheCounts.m
9,255
utf_8
f90cd02f86184d95cd5fbbd3d337d221
function [nodeCount,edgeCount,auxCount,exitflags] = UGM_ConvexBetheCounts(edgeStruct,kappa,tgt,verbose,C,alwaysSlack) % % Computes the counting numbers for the Bethe approximation. % % edgeStruct : edge structure % kappa : desired modulus of convexity (def: 0) % tgt : target counting numbers: % 1 = Bethe (def) (Meshi ...
github
blondon/UGM-master
UGM_TreeBP.m
.m
UGM-master/UGM/misc/UGM_TreeBP.m
3,036
utf_8
b1e462d283b246a4787e60c0e2801206
function [messages] = UGM_TreeBP(nodePot,edgePot,edgeStruct,maximize) [nNodes,maxState] = size(nodePot); nEdges = size(edgePot,3); edgeEnds = edgeStruct.edgeEnds; nStates = edgeStruct.nStates; V = double(edgeStruct.V); E = edgeStruct.E; % Count number of neighbors nNeighbors = zeros(nNodes,1); for n = 1:nNodes n...
github
blondon/UGM-master
UGM_Sample_VarMCMC.m
.m
UGM-master/UGM/sample/UGM_Sample_VarMCMC.m
2,659
utf_8
b0169893a2e555c13b1e07770d5a14ce
function [samples] = UGM_Sample_VarMCMC(nodePot,edgePot,edgeStruct,burnIn,varProb) % MCMC sampler that switches between random walk MH and variational MF % sampling % % varProb is the probability of trying the variational move % (set to 0 for purely variational proposals) [nNodes,maxStates] = size(nodePot); nEdges = s...
github
blondon/UGM-master
UGM_Sample_Junction.m
.m
UGM-master/UGM/sample/UGM_Sample_Junction.m
11,053
utf_8
3a1b76defcee3aa51e4ad9c55c85fdae
function [samples] = UGM_Sample_Junction(nodePot,edgePot,edgeStruct,ordering) debug = 0; [nNodes,maxState] = size(nodePot); nEdges = size(edgePot,3); edgeEnds = edgeStruct.edgeEnds; V = edgeStruct.V; E = edgeStruct.E; nStates = edgeStruct.nStates; nSamples = edgeStruct.maxIter; if nargin < 4 ordering = 1:nNodes;...
github
blondon/UGM-master
UGM_Sample_Gibbs.m
.m
UGM-master/UGM/sample/UGM_Sample_Gibbs.m
1,540
utf_8
3088eaf55652a9099e73fe6e895bbee2
function [samples] = UGM_Sample_Gibbs(nodePot,edgePot,edgeStruct,burnIn,y) % [samples] = UGM_Sample_Gibbs(nodePot,edgePot,edgeStruct,burnIn,y) % Single Site Gibbs Sampling if nargin < 5 % Initialize [junk y] = max(nodePot,[],2); end if edgeStruct.useMex samples = UGM_Sample_GibbsC(nodePot,edgePot,edgeStruct.edgeE...