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 | aodn/imos-toolbox-master | SBE56Parse.m | .m | imos-toolbox-master/Parser/SBE56Parse.m | 16,052 | utf_8 | 15df4a6f546b6f586bfbe518dc116871 | function sample_data = SBE56Parse( filename, mode )
%SBE56PARSE Parses a .cnv data file from a Seabird SBE56
% CTD recorder.
%
% This function is able to read in a .cnv data file retrieved
% from a Seabird SBE56 Temperature Logger. It reads specific instrument header
% format and makes use of a lower level function rea... |
github | aodn/imos-toolbox-master | StarmonDSTParse.m | .m | imos-toolbox-master/Parser/StarmonDSTParse.m | 17,914 | utf_8 | 9e69f771c4b68bc9c2ef0981cb71cf89 | function sample_data = StarmonDSTParse( filename, mode )
%STARMONMINIPARSE Parses an ASCII file from Starmon DST Tilt or CTD .DAT
%file format. Based on StarmonMiniParse.m.
%
% The files consist of two sections:
%
% - file headerContent - headerContent information with description of the data structure and content.
%... |
github | aodn/imos-toolbox-master | infinitySDLoggerParse.m | .m | imos-toolbox-master/Parser/infinitySDLoggerParse.m | 7,507 | utf_8 | e48c36de004b7e13f983503633741d7f | function sample_data = infinitySDLoggerParse( filename, mode )
%infinitySDLogger Parses a .csv data file retrieved from a JFE Infinity ACLW-USB logger.
%
%
% Inputs:
% filename - Cell array containing the name of the file to parse.
% mode - Toolbox data type mode.
%
% Outputs:
% sample_data - Struct con... |
github | aodn/imos-toolbox-master | netcdfParse.m | .m | imos-toolbox-master/Parser/netcdfParse.m | 9,085 | utf_8 | a8ce0ae380d7bdd43f6a875cbc965c58 | function sample_data = netcdfParse( filename, mode )
%NETCDFPARSE Parses an IMOS NetCDF file.
%
% This function is able to import an IMOS compliant NetCDF file.
%
% Inputs:
% filename - cell array of file names (only one supported).
% mode - Toolbox data type mode.
%
% Outputs:
% sample_data - struct co... |
github | aodn/imos-toolbox-master | readSBE19hex.m | .m | imos-toolbox-master/Parser/readSBE19hex.m | 12,624 | utf_8 | 5c091eb63df25f5290340d8e9e793ca3 | function [data, comment] = readSBE19hex( dataLines, instHeader )
%READSBE19HEX Parses the given data lines from a SBE19 .hex data file.
%
% Currently, only raw hex (raw voltages and frequencies) output format is
% supported.
%
% Inputs:
% dataLines - Cell array of strings, the lines from the .hex file which
% ... |
github | aodn/imos-toolbox-master | SBE19Parse.m | .m | imos-toolbox-master/Parser/SBE19Parse.m | 30,839 | utf_8 | 9a11a88b42b14acfce8c6cc0bc54d2ae | function sample_data = SBE19Parse( filename, mode )
%SBE19PARSE Parses a .cnv or .hex data file from a Seabird SBE19plus v2 or a .cnv SBE16plus
% CTD recorder.
%
% This function is able to read in a .cnv or .hex data file retrieved
% from a Seabird SBE19plus V2 or a .cnv from a SBE16plus CTD recorder. It makes use of ... |
github | aodn/imos-toolbox-master | readXR620.m | .m | imos-toolbox-master/Parser/readXR620.m | 24,707 | utf_8 | 21fe3173530968b73ff1c93363917098 | function sample_data = readXR620( filename, mode )
%readXR620 Parses a data file retrieved from an RBR XR620 or XR420 depth
% logger.
%
% This function is able to read in a single file retrieved from an RBR
% XR620 or RX420 data logger in Engineering unit .txt format (processed
% using Ruskin software). The pressure ... |
github | aodn/imos-toolbox-master | readWQMraw.m | .m | imos-toolbox-master/Parser/readWQMraw.m | 29,942 | utf_8 | 48ee6c1c0f36a0b87150eaad77c01761 | function sample_data = readWQMraw( filename, mode )
%readWQMraw parses a .RAW file retrieved from a Wetlabs WQM instrument.
%
% This function is able to parse raw data retrieved from a Wetlabs WQM CTD/ECO
% instrument.
%
% Inputs:
% filename - name of the input file to be parsed
% mode - Toolbox data type... |
github | aodn/imos-toolbox-master | YSI6SeriesParse.m | .m | imos-toolbox-master/Parser/YSI6SeriesParse.m | 13,511 | utf_8 | e9ed1827a9629c1e73d8e8d2cf145cf3 | function sample_data = YSI6SeriesParse( filename, mode )
%YSI6SERIESPARSE Parser for YSI 6 series MultiParameter data logger files.
%
% This function is able to parse .DAT files retrieved from YSI 6 series
% data loggers. YSI do not provide a file format specification, so this
% function relies upon reverse engineeri... |
github | aodn/imos-toolbox-master | RCMParse.m | .m | imos-toolbox-master/Parser/RCMParse.m | 9,826 | utf_8 | 820451a5510f1563731ed333f30c8044 | function sample_data = RCMParse( filename, mode )
%RCMParse Parses a .txt data file from RCM-8 and old Seaguard RCM files processed with
%Aanderaa software.
%
% - processed header - header information.
% Typically first 2 lines.
% - data - Rows of tab seperated data.
%
% This f... |
github | aodn/imos-toolbox-master | SBE37Parse.m | .m | imos-toolbox-master/Parser/SBE37Parse.m | 10,495 | utf_8 | 5395d518862111a083aacbf51c9d8fc6 | function sample_data = SBE37Parse( filename, mode )
%SBE37PARSE Parse a raw '.asc' file containing SBE37 data, or SBE37-IM hex
% format from OOI (USA).
%
% This function can read in data that has been downloaded from an SBE37
% 'Microcat' temperature/conductivity/pressure sensor.
%
% The output format for the SBE37 is... |
github | aodn/imos-toolbox-master | NXICBinaryParse.m | .m | imos-toolbox-master/Parser/NXICBinaryParse.m | 32,337 | utf_8 | fb333ab99a0ddda20747776d2aaf4c56 | function sample_data = NXICBinaryParse( filename, mode )
%NXICBINARYPARSE Parses a binary file retrieved from a Falmouth Scientific
% Instruments (FSI) NXIC CTD recorder.
%
% Reads in a raw (.ctd) file retrieved from an NXIC CTD instrument, and
% parses the conductivity, temperature and depth data contained within. A
%... |
github | aodn/imos-toolbox-master | convertSBEcnvVar.m | .m | imos-toolbox-master/Parser/convertSBEcnvVar.m | 10,402 | utf_8 | 320785f4ab0bae330b15c0fdde248d85 | function [name, data, comment] = convertSBEcnvVar(name, data, timeOffset, instHeader, procHeader, mode)
%CONVERTSBECNVVAR Processes data from a SeaBird .cnv file.
%
% This function is able to convert data retrieved from a CNV SeaBird
% data file generated by the Seabird SBE Data Processing program. This
% function is ... |
github | aodn/imos-toolbox-master | sensusUltraParse.m | .m | imos-toolbox-master/Parser/sensusUltraParse.m | 5,381 | utf_8 | da2d15924d6f9e1eb9a25ae126d1de1b | function sample_data = sensusUltraParse( filename, mode )
%sensusUltra Parses a data file retrieved from a ReefNet Sensus Ultra logger.
%
%
% Inputs:
% filename - Cell array containing the name of the file to parse.
% mode - Toolbox data type mode.
%
% Outputs:
% sample_data - Struct containing imported... |
github | aodn/imos-toolbox-master | readWorkhorseEnsembles.m | .m | imos-toolbox-master/Parser/readWorkhorseEnsembles.m | 27,240 | UNKNOWN | 7e677c89f13a8c0d48e742dc49decde1 | function ensembles = readWorkhorseEnsembles( filename )
%READWORKHORSEENSEMBLES Reads in and returns all of the ensembles contained
% in the given binary file retrieved from a Workhorse ADCP.
%
% This function parses a binary file retrieved from a Teledyne RD Workhorse
% ADCP instrument. This function is only able to i... |
github | aodn/imos-toolbox-master | SBE37SMParse.m | .m | imos-toolbox-master/Parser/SBE37SMParse.m | 16,567 | utf_8 | 1ac8f6208c94d3e826bdee1a296d9d70 | function sample_data = SBE37SMParse( filename, mode )
%SBE37SMPARSE Parses a .cnv or .asc data file from a Seabird SBE37SM
% CTD recorder.
%
% This function is able to read in a .cnv data file retrieved
% from a Seabird SBE37SM CTD recorder. It makes use of a lower level
% function readSBE37cnv. The files consist of up... |
github | aodn/imos-toolbox-master | readXR420.m | .m | imos-toolbox-master/Parser/readXR420.m | 20,387 | utf_8 | f16610c930d50d0aa05a1990bfb896dd | function sample_data = readXR420( filename, mode )
%readXR420 Parses a data file retrieved from an RBR XR420 depth logger.
%
% This function is able to read in a single file retrieved from an RBR
% XR420 data logger using RBR Windows v 6.13 software. The pressure data
% is returned in a sample_data struct. RBR TDR 205... |
github | aodn/imos-toolbox-master | readAD2CPBinary.m | .m | imos-toolbox-master/Parser/readAD2CPBinary.m | 28,410 | utf_8 | af8ce637b6010f2c99f73fed3ea20898 | function structures = readAD2CPBinary( filename )
%READAD2CPBINARY Reads a binary file retrieved from an 'AD2CP'
% instrument.
%
% This function is able to parse raw binary data from any Nortek instrument
% which is defined in the Data formats chapter of the Nortek
% Integrator Guide AD2CP, 2016.
%
% Nortek AD2CP binar... |
github | aodn/imos-toolbox-master | DR1050Parse.m | .m | imos-toolbox-master/Parser/DR1050Parse.m | 7,973 | utf_8 | c262f94bb5ddb4e281cb11d873f4f1e8 | function sample_data = DR1050Parse( filename, mode )
%DR1050PARSE Parses a data file retrieved from an RBR DR1050 depth logger.
%
% This function is able to read in a single file retrieved from an RBR
% DR1050 data logger. The pressure data is returned in a sample_data
% struct.
%
% Inputs:
% filename - Cell array... |
github | aodn/imos-toolbox-master | readWQMdat.m | .m | imos-toolbox-master/Parser/readWQMdat.m | 16,934 | utf_8 | 6fe082d6a1958abfa43b3086467bfb25 | function sample_data = readWQMdat( filename, mode )
%readWQMdat parses a .dat file retrieved from a Wetlabs WQM instrument.
%
% This function is able to parse data retrieved from a Wetlabs WQM CTD/ECO
% instrument. The data must be in '.dat' format, i.e. raw data which has been
% processed by the WQMHost software, in ... |
github | aodn/imos-toolbox-master | readVemcoCsv.m | .m | imos-toolbox-master/Parser/readVemcoCsv.m | 3,127 | UNKNOWN | aa1008681f2f9d072e4877876248c9d1 | function [data, comment] = readVemcoCsv(dataLines, procHeader)
%readVemcoCsv Processes data section from a Vemco .csv file.
%
% This function is able to process data retrieved from a converted (.csv)
% data file generated by the Vemco Vue Logger program. This
% function is called from VemcoParse. Code modelled on readS... |
github | aodn/imos-toolbox-master | signatureParse.m | .m | imos-toolbox-master/Parser/signatureParse.m | 55,146 | utf_8 | 627b2df59fe859f76a1764f811cd2777 | function sample_data = signatureParse( filename, tMode )
%SIGNATUREPARSE Parses ADCP data from a raw Nortek Signature
% binary (.ad2cp) file.
%
%
% Inputs:
% filename - Cell array containing the name of the raw signature
% file to parse.
% tMode - Toolbox data type mode.
%
% Outputs:
% ... |
github | aodn/imos-toolbox-master | readSBE37hex.m | .m | imos-toolbox-master/Parser/readSBE37hex.m | 3,830 | utf_8 | 244ee6faa16b53c4c0a1738d74a5dfc5 | function data = readSBE37hex( dataLines, instHeader )
%READSBE37HEX Parses the given data lines from a SBE37 .DAT hexadecimal data file.
%
%
% Inputs:
% dataLines - Cell array of strings, the lines from the .hex file which
% contain data.
% instHeader - Struct containing information contained in th... |
github | aodn/imos-toolbox-master | DataParser.m | .m | imos-toolbox-master/Parser/GenericParser/DataParser.m | 5,210 | utf_8 | 8b23193cc2ddc05c9aae37e0384cd23e | function [rawdata, data] = DataParser(fid, sdata)
% function [rawdata,data] = DataParser(fid,sdata)
%
% A wrapper function to parse data from a
% file id with a pre-defined super data structure.
% See Parsers and rules.
%
% Inputs:
%
% fid - The file id.
% sdata - The super data structure that
% declare how to ... |
github | aodn/imos-toolbox-master | detectEncoding.m | .m | imos-toolbox-master/Parser/GenericParser/detectEncoding.m | 3,139 | UNKNOWN | bdb7d864a27af40a76d5c74853e994df | function [encoding, machineformat] = detectEncoding(filename)
%function [encoding, machineformat] = detectEncoding(filename)
%
% A function to load/detect the Encoding of a file.
% The detection is dynamic, but unfortunately can be slow since
% we need to load the entire file several times.
%
% Inputs:
%
% filename - a... |
github | aodn/imos-toolbox-master | StaroddiRules.m | .m | imos-toolbox-master/Parser/GenericParser/InstrumentRules/StaroddiRules.m | 30,058 | utf_8 | d93aa502db41dcb101fca7b306051172 | function [rules] = StaroddiRules()
% function [rules] = StaroddiRules()
%
% Load the structural rules for reading and processing Star-Oddi
% Instruments.
%
% This is a declarative function that setup meta parameters and functions
% on how to read the headers/data of the instrument file.
%
% Inputs:
%
% Outputs:
% rules... |
github | aodn/imos-toolbox-master | imosRegionalRangeQC.m | .m | imos-toolbox-master/AutomaticQC/imosRegionalRangeQC.m | 7,906 | utf_8 | 160a7173821832ede6123a6cc8dcc7d2 | function [data, flags, paramsLog] = imosRegionalRangeQC ( sample_data, data, k, type, auto )
%IMOSREGIONALRANGEQC Flags data which is out of the variable's valid regional range.
%
% Iterates through the given data, and returns flags for any samples which
% do not fall within the regionalRangeMin and regionalRangeMax fi... |
github | aodn/imos-toolbox-master | imosTimeSeriesSpikeQC.m | .m | imos-toolbox-master/AutomaticQC/imosTimeSeriesSpikeQC.m | 10,400 | utf_8 | 9f0d9edc7020f2ca0eab64649c90e885 | function [timeseriesFlags, timeseriesLog] = imosTimeSeriesSpikeQC(sample_data, auto)
%function [varFlags, timeseriesLog] = imosTimeSeriesSpikeQC(sample_data,auto)
%
% The top-level function to initialize Spike Tests over timeSeries data.
%
% Inputs:
% sample_data - struct containing the entire data set and dimension ... |
github | aodn/imos-toolbox-master | imosTiltVelocitySetQC.m | .m | imos-toolbox-master/AutomaticQC/imosTiltVelocitySetQC.m | 12,330 | utf_8 | fed9ca1908423169750695a207baa1b4 | function [sample_data, varChecked, paramsLog] = imosTiltVelocitySetQC( sample_data, auto )
%IMOSTILTVELOCITYSETQC Quality control procedure for instrument data against their tilt.
%
% Quality control velocity data, assessing the tilt of the instrument in both
% ADCP and current meter data.
%
% The tilt of the instrumen... |
github | aodn/imos-toolbox-master | teledyneSetQC.m | .m | imos-toolbox-master/AutomaticQC/teledyneSetQC.m | 11,506 | windows_1250 | 0ca8336d80c1dfcc52232d9e40f05d52 | function [sample_data, varChecked, paramsLog] = teledyneSetQC( sample_data, auto )
%TELEDYNESETQC Quality control procedure for Teledyne Workhorse (and similar)
% ADCP instrument data.
%
% Inputs:
% sample_data - struct containing the entire data set and dimension data.
% auto - logical, run QC in batch mode
%
% Ou... |
github | aodn/imos-toolbox-master | imosSpikeClassifierNonBurstSavGolOTSU.m | .m | imos-toolbox-master/AutomaticQC/SpikeClassifiers/imosSpikeClassifierNonBurstSavGolOTSU.m | 3,467 | utf_8 | e72b3c079ac19bb7bf357034f804ecec | function [spikes] = imosSpikeClassifierNonBurstSavGolOTSU(signal, window, pdeg, nbins, oscale)
% function spikes = imosSpikeClassifierNonBurstSavGolOTSU(signal, window, pdeg, nbins, oscale)
%
% Detect spikes in signal by using the Otsu threshold method
% applied to the noise estimated by a Savitzy Golay Filter applied ... |
github | aodn/imos-toolbox-master | loadSpikeClassifiers.m | .m | imos-toolbox-master/AutomaticQC/SpikeClassifiers/loadSpikeClassifiers.m | 4,262 | utf_8 | 346210bb02a0da8a90451b0962e786a8 | function [cmap] = loadSpikeClassifiers(file, is_data_burst)
%function [cmap] = loadSpikeClassifiers(file, is_data_burst)
%
% Load all SpikeQC classifiers parameters and options as a dict.
%
% Input:
%
% file - the parameter txt file
% is_data_burst - boolean for loading burst Classifiers.
%
% Output:
%
% cmap - the cla... |
github | aodn/imos-toolbox-master | imosSpikeClassifierOTSU.m | .m | imos-toolbox-master/AutomaticQC/SpikeClassifiers/imosSpikeClassifierOTSU.m | 3,400 | utf_8 | 1f2cca3be24dbf006aebfae2b2c8dfff | function [spikes,threshold] = imosSpikeClassifierOTSU(signal, nbins, oscale, centralize)
% function [spikes,threshold] = imosSpikeClassifierOTSU(signal, nbins, oscale, centralize)
%
% Detect spikes in by using the Otsu threshold method.
%
% The original version was called despiking2 and provided by Ken Ridgway.
%
% Inp... |
github | aodn/imos-toolbox-master | sw_satO2.m | .m | imos-toolbox-master/Seawater/EOS80/sw_satO2.m | 2,212 | utf_8 | 8e76cf9ed3a48e86b0d60139abeb35c7 | %$$$
%$$$ #undef __PR
%$$$ #include "VARIANT.h"
function c = sw_satO2(S,T)
% SW_SATO2 Satuaration of O2 in sea water
%=========================================================================
% sw_satO2 $Id: sw_satO2.m,v 1.1 2003/12/12 04:23:22 pen078 Exp $
% Copyright (C) CSIRO, Phil Morgan 1998.
%
% USAG... |
github | aodn/imos-toolbox-master | gsw_SAAR.m | .m | imos-toolbox-master/Seawater/TEOS10/library/gsw_SAAR.m | 13,627 | utf_8 | aa8a22d1d7041550d5a771ee43a98f5f | function [SAAR, in_ocean] = gsw_SAAR(p,long,lat)
% gsw_SAAR Absolute Salinity Anomaly Ratio (excluding the Baltic Sea)
%==========================================================================
%
% USAGE:
% [SAAR, in_ocean] = gsw_SAAR(p,long,lat)
%
% DESCRIPTION:
% Calculates the Absolute Salinity Anomaly R... |
github | aodn/imos-toolbox-master | graphTimeSeriesTimeFrequencyDirection.m | .m | imos-toolbox-master/Graph/TimeSeries/graphTimeSeriesTimeFrequencyDirection.m | 7,993 | utf_8 | 3f81833a7c0b86e5f66b4a6fd3c6f016 | function [h labels] = graphTimeSeriesTimeFrequencyDirection( ax, sample_data, var, color, xTickProp )
%GRAPHTIMESERIESTIMEFREQUENCYDIRECTION Plots the given data using pcolor.
%
% This function is used for plotting time/frequency/direction data for one
% selected time value. The pcolor function is used to display a 2... |
github | aodn/imos-toolbox-master | setTimeSeriesColorbarContextMenu.m | .m | imos-toolbox-master/Graph/TimeSeries/setTimeSeriesColorbarContextMenu.m | 12,477 | utf_8 | 087cd63ec30c6abcc54db55c66128d48 |
function hMenu = setTimeSeriesColorbarContextMenu(ax, var)
%SETTIMESERIESCOLORBARCONTEXTMENU sets a colorbar uicontextmenu and returns its handle
% specific to an axes and a variable.
%
% This function is used for defining the colorbar context menus of each
% axis 2D displayed.
%
% Inputs:
% ax - The handl... |
github | aodn/imos-toolbox-master | parseAttributeValue.m | .m | imos-toolbox-master/Util/parseAttributeValue.m | 7,028 | utf_8 | f8580cb5dc789a82a8d3d16c979c5646 | function value = parseAttributeValue(line, sample_data, k)
%PARSEATTRIBUTEVALUE Parse an attribute value.
%
% Parses an attribute value as read from a template file. Searches for and
% interprets 'tokens' which point to the deployment database or which contain
% a matlab expression.
%
% Inputs:
%
% line - th... |
github | aodn/imos-toolbox-master | viridis.m | .m | imos-toolbox-master/Util/viridis.m | 12,627 | utf_8 | 196c5ea2ce16a6b8abd2f2d1dc31502c | % http://www.mathworks.com/matlabcentral/fileexchange/51986-perceptually-uniform-colormaps/content/Colormaps/viridis.m
function cm_data=viridis(m)
cm = [[ 0.26700401, 0.00487433, 0.32941519],
[ 0.26851048, 0.00960483, 0.33542652],
[ 0.26994384, 0.01462494, 0.34137895],
[ 0.27130489, 0.019941... |
github | aodn/imos-toolbox-master | legendflex.m | .m | imos-toolbox-master/Util/legendflex.m | 31,537 | UNKNOWN | 271f2149f0f0de30f3789750eb1862fb | function varargout = legendflex(varargin)
%LEGENDFLEX Creates a more flexible legend
%
% legendflex(M, param1, val1, ...)
% legendflex(h, M, param1, val1, ...)
% [legend_h,object_h,plot_h,text_str] = legendflex(...)
%
% This offers a more flexible version of the legend command. It offers a
% different method of posit... |
github | aodn/imos-toolbox-master | multipleLegend.m | .m | imos-toolbox-master/Util/multipleLegend.m | 22,362 | utf_8 | c24fa957e1a835f558a9923f7b2722d5 | function [leg,labelhandles,outH,outM] = multipleLegend(varargin)
%MULTIPLELEGEND Display multiple legends.
% LEGEND(string1,string2,string3, ...) puts a legend on the current plot
% using the specified strings as labels. LEGEND works on line graphs,
% bar graphs, pie graphs, ribbon plots, etc. You can label any
... |
github | aodn/imos-toolbox-master | setAIMSmetadata.m | .m | imos-toolbox-master/Util/setAIMSmetadata.m | 4,904 | utf_8 | e3030e006d38d3974315d7d17a51f0f3 | function AIMSmetadata = setAIMSmetadata(site,metadataField)
%This function allows a generic config file to be used with the
%IMOS toolbox for processing AIMS data.
%The function call [mat setAIMSmetadata('[ddb Site]','naming_authority')]
%in global_attributes.txt calls this function with the site and the
%datafield as... |
github | aodn/imos-toolbox-master | uiNumericalBox.m | .m | imos-toolbox-master/Util/UI/uiNumericalBox.m | 4,600 | utf_8 | 748160d091391472357e1d1e784e8cd2 | function [result] = uiNumericalBox(boxNames, boxValues, boxFuncs, varargin)
% function [result] = uiNumericalBox(boxNames, boxValues, boxFuncs, varargin)
%
% Create a dialog box so user can input some numeric values. The difference here
% between inputdlg is that input is validated in place and restore to defaults
% if... |
github | aodn/imos-toolbox-master | setToolboxPaths.m | .m | imos-toolbox-master/Util/Path/setToolboxPaths.m | 4,053 | utf_8 | cb3e3848d2a4cf0d1626cb7c2e5bc28f | function setToolboxPaths(toolbox_path)
% function setToolboxPaths(toolbox_path)
%
% Add all the folders of the toolbox to the search
% path.
%
% Inputs:
%
% toolbox_path - the root path of the IMOS toolbox
%
% Outputs:
%
% Example:
%
% setToolboxPaths(toolboxRootPath)
% assert(exist('detectType.m','file')==2)
%
% autho... |
github | aodn/imos-toolbox-master | isequal_tol.m | .m | imos-toolbox-master/Util/Schema/isequal_tol.m | 3,057 | utf_8 | 0153fbbecacfb4626636a3ea862c0059 | function [bool, eqarr, pequal] = isequal_tol(a, b, decrange)
% function [bool,eqarr, pequal] = isequal_tol(a,b, decrange)
%
% Compare floating numbers up to a decimal range,
% via quantisation.
%
% Inputs:
%
% a [array] - a singleton or array of numbers.
% b [array] - as above.
% decrange [int] - the range in decimals.... |
github | aodn/imos-toolbox-master | treeDiff.m | .m | imos-toolbox-master/Util/Schema/treeDiff.m | 17,830 | utf_8 | b071b4740ceeea349e8033c6ee8c7938 | function [isdiff, finalmsg] = treeDiff(a, b, stopfirst, func, this_root, n),
% function [isdiff, finalmsg] = treeDiff(a, b, stopfirst, func, this_root, n),
%
% An enhanced isequal for matlab variables that supports
% itemwise comparison between cells/structs at all nested levels.
% The function comp... |
github | aodn/imos-toolbox-master | readUntilMatch.m | .m | imos-toolbox-master/Util/File/readUntilMatch.m | 2,189 | utf_8 | fc473cda79e846dcc9db9409d64805ef | function [clines, number_of_lines] = readUntilMatch(fid, pattern, is_regex, stacksize)
%function [clines, number_of_lines] = readUntilMatch(fid, pattern, is_regex, stacksize)
%
% Read a file, line by line, until a pattern is found, returning
% all lines read and the total number of lines.
% The result is empty (total n... |
github | aodn/imos-toolbox-master | get.m | .m | imos-toolbox-master/Util/+IMOS/get.m | 1,184 | utf_8 | 7b7bcb4a8cbd8a7943f9ab42c649e252 | function [fcell] = get(icell, fieldname)
% function [fcell] = get(icell,fieldname)
%
% Get a fieldname from a IMOS cell of structs.
%
% Inputs:
%
% icell [cell[struct]] - an IMOS cell of structs.
% fieldname - the struct fieldname.
%
% Outputs:
%
% fcell[Any] - A cell with all fieldnames. If fieldnames
% a... |
github | aodn/imos-toolbox-master | dimensions.m | .m | imos-toolbox-master/Util/+IMOS/+templates/dimensions.m | 1,329 | utf_8 | 940952465f7f91db81769a15e375452c | classdef dimensions
% A collection of minimal IMOS dimensions templates.
properties (Constant)
timeseries = timeseries_dims();
profile = profile_dims();
ad_profile = ad_profile_dims();
adcp = adcp_dims();
adcp_enu = adcp_enu_dims();
end
end
function [dimensions] = timeseries_dims()
%create basic timeseri... |
github | aodn/imos-toolbox-master | commentEvalWrapper.m | .m | imos-toolbox-master/Util/TestUtils/commentEvalWrapper.m | 2,023 | utf_8 | 465fa0fd9ad926af634aae87e740fa7b | function [ok, msg] = commentEvalWrapper(cell_of_strings, line_offset, dbreak)
%function [ok, msg] = commentEvalWrapper(cell_of_strings)
%
% a closure to evaluate commented string entries
% inside a cell. The function stops at the first
% empty entry in a cell and ignore all non comments
% entries.
%
% Inputs:
%
% cell_... |
github | aodn/imos-toolbox-master | checkDocstrings.m | .m | imos-toolbox-master/Util/TestUtils/checkDocstrings.m | 2,370 | utf_8 | 94e0f76deecb4d1079de96759628ad9c | function [ok, wrong_files, nfiles, error_msgs, missing_comment, missing_example] = checkDocstrings(folder)
% function [ok, wrong_files, nfiles, error_msgs, missing_comment, missing_example] = checkDocstrings(folder)
%
% Check all matlab source file IMOS docstrings in a folder.
%
% Inputs:
%
% folder [str] - a string wi... |
github | aodn/imos-toolbox-master | nc_flat.m | .m | imos-toolbox-master/Util/NetCDF/nc_flat.m | 3,888 | utf_8 | 549d818c476e153c7905016bd4428e93 | function [flat_struct] = nc_flat(ncstruct, keep_empty)
% function [flat_struct] = nc_flat(ncstruct, keep_empty)
%
% Flat the ncinfo structure, recursively,
% into a flattened form with named/dictionary like access.
% Prunning is also allowed.
%
% Inputs:
%
% ncinfo_struct [struct] - a ncinfo like structure
% keep_empty... |
github | aodn/imos-toolbox-master | finaliseData.m | .m | imos-toolbox-master/IMOS/finaliseData.m | 11,901 | utf_8 | fd4cccf94c743758cbd0deec2638454e | function sam = finaliseData(sam, rawFiles, flagVal, toolboxVersion)
%FINALISEDATA Adds all required/relevant information from the given field
%trip and deployment structs to the given sample data following the IMOS NetCDF standard.
%
%
% Inputs:
% sam - a struct containing sample data.
% rawFiles ... |
github | aodn/imos-toolbox-master | genIMOSFileName.m | .m | imos-toolbox-master/IMOS/genIMOSFileName.m | 8,807 | utf_8 | 6f7a2ebf51a5159b48898c2243725d5e | function filename = genIMOSFileName( sample_data, extension )
%GENIMOSFILENAME Generates an IMOS file name for the given data set.
%
% Generates a file name for the given data set. The file name is generated
% according to the IMOS NetCDF File Naming Convention, version 1.4. Values
% for each field are retrieved from ... |
github | aodn/imos-toolbox-master | preprocessManager.m | .m | imos-toolbox-master/FlowManager/preprocessManager.m | 6,426 | utf_8 | 43fd9b573b83fe9a5883e71ccc3b9742 | function [sample_data, cancel] = preprocessManager( sample_data, qcLevel, mode, auto )
%PREPROCESSMANAGER Runs preprocessing filters over the given sample data
% structs.
%
% Given a cell array of sample_data structs, prompts the user to run
% preprocessing routines over the data.
%
% Inputs:
% sample_data - cell ar... |
github | aodn/imos-toolbox-master | importManager.m | .m | imos-toolbox-master/FlowManager/importManager.m | 16,745 | utf_8 | 28737766a7d60fb53170c1229bfa24f5 | function sample_data = importManager(toolboxVersion, auto, iMooring)
%IMPORTMANAGER Manages the import of raw instrument data into the toolbox.
%
% Imports raw data. If a deployment database exists, prompts the user to
% select a field trip and a directory containing raw data, then matches up
% deployments (retrieved... |
github | aodn/imos-toolbox-master | exportManager.m | .m | imos-toolbox-master/FlowManager/exportManager.m | 8,777 | utf_8 | 52de705afda90eaf4f6b0b1c83a198f5 | function exportManager(dataSets, levelNames, output, auto)
%EXPORTMANAGER Manages the export of data to NetCDF or raw data files.
%
% Inputs:
% dataSets - Cell array containing the data levels, each of which is a
% cell array of sample data structs. All of the sample data
% cell arra... |
github | aodn/imos-toolbox-master | autoQCManager.m | .m | imos-toolbox-master/FlowManager/autoQCManager.m | 8,098 | utf_8 | 922d29bbb1636b11939a948a30f4dc9d | function qc_data = autoQCManager( sample_data, auto )
%AUTOQCMANAGER Manages the execution of automatic QC routines over a set
% of data.
%
% The user is prompted to select a chain of QC routines through which to
% pass the data. The data is then passed through the selected filter chain
% and returned.
%
% Inputs:
% ... |
github | aodn/imos-toolbox-master | parseNetCDFTemplate.m | .m | imos-toolbox-master/NetCDF/parseNetCDFTemplate.m | 10,025 | utf_8 | 9136b6c174a127613ab6a1cf04c5ad0d | function template = parseNetCDFTemplate ( file, sample_data, k )
%PARSETEMPLATE Parses the given NetCDF attribute template file.
%
% Parses the given NetCDF attribute template file, inserting data into
% the given sample_data struct where required.
%
% A number of template files exist in the NetCDF/template subdirect... |
github | aodn/imos-toolbox-master | exportNetCDF.m | .m | imos-toolbox-master/NetCDF/exportNetCDF.m | 25,647 | utf_8 | d56b265b2b5a459aa59f617667e73dd5 | function filename = exportNetCDF( sample_data, dest, mode )
%EXPORTNETCDF Export the given sample data to a NetCDF file.
%
% Export the given sample and calibration data to a NetCDF file. The file is
% saved to the given destination directory. The file name is generated by the
% genIMOSFileName function.
%
% Inputs:
%... |
github | aodn/imos-toolbox-master | makeNetCDFCompliant.m | .m | imos-toolbox-master/NetCDF/makeNetCDFCompliant.m | 8,084 | utf_8 | a7247140567202936738078478eca060 | function sample_data = makeNetCDFCompliant( sample_data )
%MAKENETCDFCOMPLIANT Adds fields in the given sample_data struct to make
% it compliant with the IMOS NetCDF standard.
%
% Uses the template files contained in the toolbox.templateDir subdirectory to
% add fields in the given sample_data struct to make it compl... |
github | aodn/imos-toolbox-master | templateType.m | .m | imos-toolbox-master/NetCDF/templateType.m | 4,042 | utf_8 | 1ac0dbadc1066bde02525d06c32f563c | function t = templateType( templateDir, name, temp, mode )
%TEMPLATETYPE Returns the type of the given NetCDF attribute, as specified
% in the associated template file.
%
% In the NetCDF attribute template files, attributes can have one of the
% following types.
%
% S - String
% N - Numeric
% D - Date
% Q - Qua... |
github | aodn/imos-toolbox-master | testadcpWorkhorseBeam2EarthPP.m | .m | imos-toolbox-master/test/Preprocessing/testadcpWorkhorseBeam2EarthPP.m | 3,707 | utf_8 | 827d280fdf37d210294b5f8d667f0cd9 | classdef testadcpWorkhorseBeam2EarthPP < matlab.unittest.TestCase
%
% Test rotation of angles from Beam to Earth coordinates
% Pre processign function.
%
% author: hugo.oliveira@utas.edu.au
%
properties (TestParameter)
quartermaster_file = {fpath('v000/beam/1759001.000.reduced')};
... |
github | aodn/imos-toolbox-master | testOxygenPP.m | .m | imos-toolbox-master/test/Preprocessing/testOxygenPP.m | 3,654 | utf_8 | ce93fa0c3d656414406e02c4c605b852 | classdef testOxygenPP < matlab.unittest.TestCase
% Test Pre-processing Oxygen function
%
% refactored version of testOxygenPP.m
% by hugo.oliveira@utas.edu.au
%
% Author: Peter Jansen <peter.jansen@csiro.au>
% Contributor: Guillaume Galibert <guillaume.galibert@utas.edu.au>
%
... |
github | aodn/imos-toolbox-master | testRepeatedTimesJFE.m | .m | imos-toolbox-master/test/Parser/testRepeatedTimesJFE.m | 2,054 | utf_8 | 377431629fea124dc6462fa8807714a3 | classdef testRepeatedTimesJFE < matlab.unittest.TestCase
%
% Test JFE infinity with high-frequency sampling.
% The instrument software do not output microseconds
% resulting in repeated time entries that need to be
% corrected.
%
% author: hugo.oliveira@utas.edu.au
%
% Copyright (C)... |
github | aodn/imos-toolbox-master | testReadWQMraw.m | .m | imos-toolbox-master/test/Parser/testReadWQMraw.m | 16,715 | utf_8 | ac80cf71c6dc346bf417a80275dc8087 | classdef testReadWQMraw < matlab.unittest.TestCase
% Test Reading WQM raw files with the
% readWQMraw function.
%
%
% author: hugo.oliveira@utas.edu.au
%
properties (TestParameter)
mode = {'timeSeries'};
wqm_file = files2namestruct(FilesInFolder([toolboxRootPath 'data/testf... |
github | aodn/imos-toolbox-master | testStaroddi.m | .m | imos-toolbox-master/test/Parser/testStaroddi.m | 10,633 | utf_8 | 1485fa1c947e683dbdd09e00d008eb12 | classdef testStaroddi < matlab.unittest.TestCase
properties (TestParameter)
mode = struct('timeSeries', 'timeSeries'); %, 'profile', 'profile');
starmon_mini_v000_param = get_testfiles('Star_oddi', 'mini', 'v000');
starmon_mini_v000_folder = {get_folder('Star_oddi', 'mini', 'v000')};
... |
github | aodn/imos-toolbox-master | testSBE19Parse.m | .m | imos-toolbox-master/test/Parser/testSBE19Parse.m | 4,992 | utf_8 | 7c6b974c8114c56d6e25a3212850c550 | classdef testSBE19Parse < matlab.unittest.TestCase
% Test Reading SBE files with the SBE19Parse
% function.
%
% author: hugo.oliveira@utas.edu.au
%
properties (TestParameter)
mode = {'timeSeries'};
wqm_file = files2namestruct(filter_extensions(rdir([toolboxRootPath 'data/testfi... |
github | aodn/imos-toolbox-master | testOnlyCPHL.m | .m | imos-toolbox-master/test/Parser/testOnlyCPHL.m | 9,068 | utf_8 | f579236826fa6258e664710193b9995b | classdef testOnlyCPHL < matlab.unittest.TestCase
% Test CPHL is the only loaded parameter in instruments
% with fluorescence instrument variables.
%
% author: hugo.oliveira@utas.edu.au
%
properties (TestParameter)
mode = struct('timeSeries', 'timeSeries'); %, 'profile', 'profile');
... |
github | aodn/imos-toolbox-master | testworkhorseParse.m | .m | imos-toolbox-master/test/Parser/testworkhorseParse.m | 9,369 | utf_8 | 87fcf1815c5adf67d5df58ae28a8cd8e | classdef testworkhorseParse < matlab.unittest.TestCase
% Test Reading Workhorse Signature files with the workhorseParse
% function.
%
% author: hugo.oliveira@utas.edu.au
%
properties (TestParameter)
enu_file = FilesInFolder(fpath('v000/enu'), {'.mat', '.ppp', '.pqc'});
beam_fil... |
github | aodn/imos-toolbox-master | testnetcdfParse.m | .m | imos-toolbox-master/test/Parser/testnetcdfParse.m | 3,129 | utf_8 | 9aceeb46b27cedae25a4a35d092f36f1 | classdef testnetcdfParse < matlab.unittest.TestCase
properties (TestParameter)
anmn_file = files2namestruct(only_netcdf(rdir([toolboxRootPath 'data/testfiles/aodn/ANMN'])))
dwm_file = files2namestruct(only_netcdf(rdir([toolboxRootPath 'data/testfiles/aodn/DWM'])))
meta_fields = {'level', 'f... |
github | aodn/imos-toolbox-master | testVoltageParameters.m | .m | imos-toolbox-master/test/Parser/testVoltageParameters.m | 3,839 | utf_8 | b0a0e10d78b18ece5c70c523ba02de8f | classdef testVoltageParameters < matlab.unittest.TestCase
% Test Reading correct Voltage Parameters from several parsers.
%
% author: hugo.oliveira@utas.edu.au
%
properties (TestParameter)
mode = {'timeSeries'};
jfe_file = files2namestruct(rdir([toolboxRootPath 'data/testfiles/JFE... |
github | aodn/imos-toolbox-master | test_imosSurfaceDetectionByDepthSetQC.m | .m | imos-toolbox-master/test/AutomaticQC/test_imosSurfaceDetectionByDepthSetQC.m | 10,781 | utf_8 | 3499047b3dd6948bd4c4f0f954d12968 | classdef test_imosSurfaceDetectionByDepthSetQC < matlab.unittest.TestCase
methods (Test)
function test_simple_binmapped_detection_minimal_input(~)
sample_data = create_simple_data('HEIGHT_ABOVE_SENSOR');
new = imosSurfaceDetectionByDepthSetQC(sample_data);
flag = new.va... |
github | aodn/imos-toolbox-master | test_SpikeClassifiers.m | .m | imos-toolbox-master/test/AutomaticQC/test_SpikeClassifiers.m | 13,804 | utf_8 | 61d6b0e50ceb2df8f245b921a6071bcb | classdef test_SpikeClassifiers < matlab.unittest.TestCase
properties (TestParameter)
plot_figure = {ismember('plot_test_figures',who('global'))};
end
methods (Test)
function test_allf_for_single_large_spike_pass(~)
signal = gen_spike_signal(1:1/24:10, [0.1, 10], [5, 1], 0, 0);
... |
github | aodn/imos-toolbox-master | test_imosTiltVelocitySetQC.m | .m | imos-toolbox-master/test/AutomaticQC/test_imosTiltVelocitySetQC.m | 6,446 | utf_8 | 0d6c48c2a3498e3638739fc8f392fc8c | classdef test_imosTiltVelocitySetQC < matlab.unittest.TestCase
properties (TestParameter)
interactive = {ismember('interactive_tests',who('global'))};
end
methods (Test)
function test_load_nortek_current_meter_values(~)
ssize = [5, 1];
sample_data = create_sample_d... |
github | aodn/imos-toolbox-master | test_imosEchoIntensitySetQC.m | .m | imos-toolbox-master/test/AutomaticQC/test_imosEchoIntensitySetQC.m | 14,194 | utf_8 | ac69971aa8051914f302c18a02c12bdb | classdef test_imosEchoIntensitySetQC < matlab.unittest.TestCase
properties (TestParameter)
zdim = {'HEIGHT_ABOVE_SENSOR', 'DIST_ALONG_BEAMS'}
end
methods (TestMethodTeardown)
function reset_default_options(~)
file = which('imosEchoIntensitySetQC');
file(end:end + 2... |
github | aodn/imos-toolbox-master | testSchema.m | .m | imos-toolbox-master/test/Util/Schema/testSchema.m | 14,393 | utf_8 | fc8f7995aa76532b83177e96bb932746 | classdef testSchema < matlab.unittest.TestCase
properties (TestParameter)
basic_type = load_basic_types();
nested_type = load_nested_types();
nested_tree_type = load_nested_tree_types();
treediff_case = load_treediff_cases();
validate_type_case = load_validatetype_cases();
... |
github | aodn/imos-toolbox-master | test_spikePreview.m | .m | imos-toolbox-master/test/UI/test_spikePreview.m | 6,004 | utf_8 | 99677bd511e9bd6df860b958247bb68c | classdef test_spikePreview < matlab.unittest.TestCase
properties (TestParameter)
interactive = {ismember('interactive_tests',who('global'))};
end
methods (Test)
function test_abort_is_empty(testCase,interactive)
testCase.assumeTrue(interactive,'Interactive test skipped')
... |
github | aodn/imos-toolbox-master | test_imosTimeSeriesSpikeQC.m | .m | imos-toolbox-master/test/UI/test_imosTimeSeriesSpikeQC.m | 5,317 | utf_8 | bf979bbd38d8504cce9e016046c92b3b | classdef test_imosTimeSeriesSpikeQC < matlab.unittest.TestCase
properties (TestParameter)
burst_file = {[toolboxRootPath() 'data/testfiles/Nortek/signature_500/v000/S100165A008_TR44Jun6.ad2cp']};
non_burst_file = {[toolboxRootPath() 'data/testfiles/Sea_Bird_Scientific/SBE/19plus/v000/chla_aquaT3_as... |
github | ramsys28/REGICA-master | crls_regica.m | .m | REGICA-master/crls_regica.m | 4,157 | utf_8 | 46514f700f5a3def89e46519c7dd685c | function [Y,H,Hh] = crls_regica(X, opt)
% crls_regica() - Performs automatic EOG artifact correction using
% multiple adaptive regression. The adaptation is made using the Conventional
% Recursive Least Squares Algorithm (CRLS) [1,2]. A forgetting factor can be
% used for dealing with time-varying scenarios. A stable (... |
github | ramsys28/REGICA-master | lms_regica.m | .m | REGICA-master/lms_regica.m | 3,439 | utf_8 | cc5a0496499fa65ddbb6dbb5c845fb85 | function [Y,H,Hout] = lms_regica(X, opt)
% lms_regica() - Performs automatic EOG artifact correction using
% multiple adaptive regression. The adaptation is made using the Least Mean
% Squares (LMS) algorithm [1].
%
% Usage:
% >> [Y,H,Hh] = lms_regica( X, opt)
%
% Inputs:
% X - Input data matrix (dxN... |
github | ramsys28/REGICA-master | regica_corr.m | .m | REGICA-master/regica_corr.m | 3,482 | utf_8 | eb5118568d9d84f823c83d5b7ad51995 | function [index,I] = eog_corr(X,opt)
% eog_corrcoef() - Selects EOG components according to their correlation
% with the EOG channels
%
% Usage:
% >> [index] = eog_corr(X,opt)
%
% Inputs:
% X - data matrix (dxN, data channels are rowwise)
% opt.eogref - EOG data matrix (kxN, da... |
github | ramsys28/REGICA-master | pop_regica.m | .m | REGICA-master/pop_regica.m | 38,551 | utf_8 | 9aa47fc59697e5c0b40a5cee5727738f | % pop_regica() - Reject ocular artifacts from EEG signals using the reg-ica
% methodology
%
%
% Usage:
% >> OUT_EEG = pop_regica( EEG ); % pops-up a data entry window
%
%
% Graphic interface:
% "BSS algorithm to use" - [list box] The BSS algorithm to use for
% Blind Source Separati... |
github | ramsys28/REGICA-master | scrls_regica.m | .m | REGICA-master/scrls_regica.m | 6,061 | utf_8 | 1d7608a0d8b2ab8ec83f3811de1b542b | function [Y,theta,Hh] = scrls_regica(X, opt)
% scrls_regica() - Performs automatic EOG artifact correction using
% multiple adaptive regression. The adaptation is made using the Conventional
% Recursive Least Squares Algorithm (CRLS) [1,2]. A forgetting factor can be
% used for dealing with time-varying scenarios. The ... |
github | ramsys28/REGICA-master | regica_fd.m | .m | REGICA-master/regica_fd.m | 3,915 | utf_8 | 3860b1d97d3d06cd022b686d764b865f | function [index,I] = regica_fd(X,opt)
% regica_fd() - Selects EOG components according to their fractal dimensions
%
% Usage:
% >> [index] = regica_fd(X,opt)
%
% Inputs:
% X - data matrix (dxN, data channels are rowwise)
% opt.wl - window length for computing the mean fractal dimension
% ... |
github | ramsys28/REGICA-master | hinfew_regica.m | .m | REGICA-master/hinfew_regica.m | 4,598 | utf_8 | 17d5e61184afa47c04fa6e791b25f680 | function [Y,H,Hh] = hinfew_regica(X, opt)
% hinfew_regica() - Performs automatic EOG artifact correction using
% multiple adaptive regression. The adaptation is made using the H infinity
% exponentially weighted (EW) algorithm [1].
%
% Usage:
% >> [Y,H,Hh] = hinfew_regica(X, opt)
%
% Inputs:
% X - In... |
github | ramsys28/REGICA-master | regica.m | .m | REGICA-master/regica.m | 12,849 | utf_8 | a13d72c1c52c83622cc5de3a2590999e | % regica() - Reject ocular artifacts from EEG signals using the reg-ica
% methodology
%
%
% Usage:
% >> Y = regica(X,opt);
%
%
% Inputs
% X - Input data matrix, d x L (d=#sensors, L=#sample points)
% opt.icatype - ['runica'|'binica'|'jader'|'acsobiro'|'sobi'] ICA algorithm
% ... |
github | ramsys28/REGICA-master | hinftv_regica.m | .m | REGICA-master/hinftv_regica.m | 4,386 | utf_8 | cb818497daa1ab2235e3920dc7addfee | function [Y,H,Hh] = hinftv_regica(X, opt)
% hinftv_regica() - Performs automatic EOG artifact correction using
% multiple adaptive regression. The adaptation takes place using the H
% infinity norm time-varying algorithm [1].
%
% Usage:
% >> [Y,H,Hh] = hinftv_regica( X, opt)
%
% Inputs:
% X - Input d... |
github | ramsys28/REGICA-master | eegplugin_regica.m | .m | REGICA-master/eegplugin_regica.m | 2,986 | utf_8 | aa4850a5ee5777f6891d4fb8a718c132 | % eegplugin_regica() - EEGLAB plugin for Automatic EOG Artifact Rejection
% using REGICA v1.0
%
%
%
% Usage:
% >> eegplugin_aar(fig, trystrs, catchstrs)
%
% Inputs:
% fig - [integer] EEGLAB figure
% trystrs - [struct] "try" strings for menu callbacks.
% catchstrs - [struct] "catch" strings for men... |
github | tT0NG/TiantongWavelet-master | iPAL_denoiseBox.m | .m | TiantongWavelet-master/iPAL_denoiseBox.m | 51,746 | utf_8 | eb802b09f76f0c20c3f66302c6139e1e | function varargout = iPAL_denoiseBox(varargin)
% IPAL_DENOISEBOX MATLAB code for iPAL_denoiseBox.fig
% IPAL_DENOISEBOX, by itself, creates a new IPAL_DENOISEBOX or raises the existing
% singleton*.
%
% H = IPAL_DENOISEBOX returns the handle to a new IPAL_DENOISEBOX or the handle to
% the existing si... |
github | tT0NG/TiantongWavelet-master | demo_555.m | .m | TiantongWavelet-master/WaveletDenoiseBox/demo_555.m | 41,152 | utf_8 | 5012c1832d62bc75f073c1cca90921b6 | function varargout = demo_555(varargin)
% DEMO_555 MATLAB code for demo_555.fig
% DEMO_555, by itself, creates a new DEMO_555 or raises the existing
% singleton*.
%
% H = DEMO_555 returns the handle to a new DEMO_555 or the handle to
% the existing singleton*.
%
% DEMO_555('CALLBACK',hObject,ev... |
github | lpuettmann/patent-automat-master | patchline.m | .m | patent-automat-master/functions/patchline.m | 3,812 | utf_8 | eb106a55c884f31c460bacfead7472aa | function p = patchline(xs,ys,varargin)
% Plot lines as patches (efficiently)
%
% SYNTAX:
% patchline(xs,ys)
% patchline(xs,ys,zs,...)
% patchline(xs,ys,zs,'PropertyName',propertyvalue,...)
% p = patchline(...)
%
% PROPERTIES:
% Accepts all parameter-values accepted by PATCH.
%
% DESCRI... |
github | lpuettmann/patent-automat-master | get_filenames.m | .m | patent-automat-master/functions/get_filenames.m | 2,242 | utf_8 | 6d87ce4628882d6d6241c0d8f1236c58 | function filenames = get_filenames(ix_year, week_start, week_end, opt2001)
% Build path to data
build_data_path = set_data_path(ix_year, opt2001);
addpath(build_data_path);
% Get names of files
% -------------------------------------------------------------------
if (ix_year <= 2000)... |
github | lpuettmann/patent-automat-master | look4patents.m | .m | patent-automat-master/functions/look4patents.m | 3,627 | utf_8 | 1e7f28c8da92e33bcbc7bcd4f0deb512 | function [ix_find, nr_patents] = look4patents(search_corpus, ftset, ...
ix_year, ix_week)
switch ftset.indic_filetype
case 1
[indic_find, nr_patents, ix_find] = special_cases_part1(...
search_corpus, ftset.patent_findstr, ftset.nr_trunc, ...
ix_year, ix_week)... |
github | lpuettmann/patent-automat-master | calculate_auc.m | .m | patent-automat-master/functions/calculate_auc.m | 1,218 | utf_8 | 20a1fed4bb55063688a73f8b3e443109 | function auc = calculate_auc(category, posterior)
% Calculates the area under the ROC for a given set
% of posterior predictions and labels. Currently limited to two classes.
%
% posterior: n*1 matrix of posterior probabilities for class 1
% category: n*1 matrix of categories {0,1}
% auc: Area under the cu... |
github | lpuettmann/patent-automat-master | get_occurstats.m | .m | patent-automat-master/nlp/get_occurstats.m | 1,342 | utf_8 | 3f9b5e6a14c05095b12a18c318dd906e | function occurstats = get_occurstats(incidMat, uniqueT, manAutomat)
aPat = find( manAutomat ); % index of automation patents
nPat = find( not( manAutomat ) ); % index of non-automation patents
assert( length(aPat) + length(nPat) == length(manAutomat) )
% All patents
[occurstats.all_sorted... |
github | lpuettmann/patent-automat-master | plot_cprob_tokclass.m | .m | patent-automat-master/nlp/plot_cprob_tokclass.m | 4,551 | utf_8 | c9ccebb9422644e434759aa916c4e334 |
function plot_cprob_tokclass(patextr)
plot_settings_global
figureHandle = figure;
T = length(patextr.title_cond_prob_no); % number of tokens
subplot(3, 2, 1)
plot(patextr.title_cond_prob_yes, 'Color', color4_pick)
hold on
plot(patextr.title_cond_prob_no, 'Color', color5_pick)
box off
xlim([0, T])
ylim([0, 1])
ylab... |
github | lpuettmann/patent-automat-master | porterStemmer.m | .m | patent-automat-master/nlp/porterStemmer.m | 10,364 | utf_8 | 7502d797a6978361e4a681a8667a5645 | function stem = porterStemmer(inString)
% Applies the Porter Stemming algorithm as presented in the following
% paper:
% Porter, 1980, An algorithm for suffix stripping, Program, Vol. 14,
% no. 3, pp 130-137
% Original code modeled after the C version provided at:
% http://www.tartarus.org/~martin/PorterStemm... |
github | lpuettmann/patent-automat-master | define_stopwords.m | .m | patent-automat-master/nlp/define_stopwords.m | 2,685 | utf_8 | a2ca918edb3e50cbc09082547ce30e74 | function stop_words = define_stopwords()
% Combine several lists of stop words.
english_stop_words = define_english_stopwords();
markup_garbage = define_markup_garbage();
% Combine lists
cl = [english_stop_words;
markup_garbage];
assert( length(english_stop_words) + length... |
github | lpuettmann/patent-automat-master | test_flatten_cellarray.m | .m | patent-automat-master/test/test_flatten_cellarray.m | 2,313 | utf_8 | cf9244ef9794b10c30af836ee692d763 | function tests = test_flatten_cellarray
tests = functiontests(localfunctions);
end
function testNonNested(testCase)
in_cellarray = {{'a'}; {'b'}; {'123'}; {'d'}; {'This is a sentence.'}};
out_cellarray_flat = flatten_cellarray(in_cellarray);
expected_out = {'a'; 'b'; '123'; 'd'; 'T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.