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
SMASHtoolbox/release-master
generate.m
.m
release-master/+SMASH/+SignalAnalysis/@NoiseSignal/generate.m
1,183
utf_8
a4847637cdd3b3c41e6cadc5252dcfbc
% generate Generate noise % % This method generates a noise measurement based on the current amplitude % and transfer table. % object=generate(object); % NOTE: object changes do NOT automatically generate a new noise % measurement. This method should be called after amplitude/transfer % changes are complete. % % ...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+SignalAnalysis/@NoiseSignal/restore.m
249
utf_8
72e54a15f7f7712de7204cd1857ec2f8
% restore Restore object from an archive function object=restore(data) object=SMASH.SignalAnalysis.NoiseSignal([]); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
defineGrid.m
.m
release-master/+SMASH/+SignalAnalysis/@NoiseSignal/defineGrid.m
1,058
utf_8
f333d2e61f25aac6d68b207822877208
% defineGrid Define noise grid % % This method defines the grid points where noise is evaluated. It is % called automatically when a NoiseSignal is created and can be recalled to % change the grid without created a new object. % object=defineGrid(object,t); % % See also NoiseSignal % % % created March 23, 2016 by ...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@NoiseSignal/view.m
1,672
utf_8
5ac772ccb48edd0826b9a6e50f3707ef
% view Display noise signal or spectrum % % This method graphically displays a NoiseSignal object. The default % display is the noise signal stored in the Measurement property. % view(object); % view(object,'measurement'); % Changing the second input displays the frequency spectrum. % view(object,'spectrum');...
github
SMASHtoolbox/release-master
mend.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/mend.m
1,678
utf_8
5309f7c2389b5342dd9e4db2b6a91bd3
% mend Remove NaN data from a Signal object % % This function removes NaN data in a Signal object. % object=mend(object); % NaN values bracketed by standard entries are replaced by linear % interpolation; NaN entries that extent to the grid boundary are replaced % with the first numeric value. % % NOTE: this metho...
github
SMASHtoolbox/release-master
verifyGrid.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/verifyGrid.m
1,182
utf_8
a41f2f251cd9e56231fc325c25caf8db
% verifyGrid validate Signal grid and check direction/uniformity % % This method verifies that the Grid array increases or decreases % monotonically. Increasing grids are labelled with a GridDirection of % "normal", while decreasing grids are labelled as "reverse". Grids that % vary by less than 1 ppm from the averag...
github
SMASHtoolbox/release-master
compare.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/compare.m
5,361
utf_8
260d360a1c13b63d0fabab0a29922350
% compare Compare signals % % This method compares two signals, determining how similar they could be. % In other words, can the second signal be made to match first signal by % linear transformations in the horizontal and/or vertical direction? % x'=a+bx y'=c+dy % These transformations are controlled by four pa...
github
SMASHtoolbox/release-master
differentiate.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/differentiate.m
2,346
utf_8
b300cb754b0ae5a2d3ea90d4aa784503
% DIFFERENTIATE Calculate numerical derivative % % This method numerically differentiates a Signal object, resulting in a % new object. % >> new=differentiate(object); % By default, a centered difference approximation is used to calculate the % derivative. Polynomial smoothing (Savitzky-Golay method) of order k can...
github
SMASHtoolbox/release-master
scale.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/scale.m
710
utf_8
7cb9529b1461bdba5785e65c35fc03f1
% SCALE Scale object Grid array % % This method multiplies a Signal object's Grid array by a scalar value, % stretching or compressing the horizontal axis. % object=scale(object,value); % % See also Signal, map, shift % % % created October 4, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=sc...
github
SMASHtoolbox/release-master
import.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/import.m
2,366
utf_8
dd4fb5f973b6f0c60f7427a7be53607f
function object=import(object,data) object.Name='Signal object'; object.GraphicOptions=SMASH.General.GraphicOptions; object.GraphicOptions.Marker='none'; object.GraphicOptions.LineStyle='-'; object.Source=sprintf('File import: %s',data.Summary); % manage multiple imports assert(numel(data)==1,... 'ERROR: cannot ...
github
SMASHtoolbox/release-master
bin.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/bin.m
1,382
utf_8
e801500a45f7d8c5046f0473a6819618
% bin Reduce resolution by binning % % Signal binning maps data from the existing grid to a coarser grid, a % process also known as decimation. % result=bin(object,M); % The output "result" spans the same grid range at reduced resolution and % with less memory. The input "M" is a positive integer control bin % siz...
github
SMASHtoolbox/release-master
findEdge.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/findEdge.m
2,291
utf_8
4e726f004872d8fdfb75c687925720b4
% findEdge Find pulse edge % % This method finds the edge of a rising/falling pulse in a signal object. % location=findEdge(object,name,value,...); % Edge analysis is controlled by optional name/value pairs. % -'Derivative' defines the derivative level (default is 1). Allowed % values are 1 or 2. % -'Durat...
github
SMASHtoolbox/release-master
map.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/map.m
2,924
utf_8
c57d69b18d2ad423f9f167c66b1d1bff
% MAP Map object coordinate(s) to a new representation % % This method allows applies a mapping function to the Grid or Data array % in Signal object. It is intended for advanced users only. For simple % Grid transformations, use the shift and scale methods. Data % transformations can often be performed directly. % ...
github
SMASHtoolbox/release-master
lookup.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/lookup.m
549
utf_8
6002bddf20bf51af0c53e215cbdbd969
% LOOKUP Look up data values at specific grid locations % % This method returns interpolated data values for specified grid % locations. % >> y=lookup(object,x); % % See also Signal, regrid % % % created November 15, 2013 by Daniel Dolan (Sandia National Laboratories) % function y=lookup(object,x,extrap) % handle...
github
SMASHtoolbox/release-master
sharpen.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/sharpen.m
795
utf_8
eb0398061ecdb09394656741732f4ff2
% SHARPEN Sharpen a Signal object % % This method sharpens the Data array in Signal objects, removing low % frequency content. The methods sharpen and smooth are compliments, % meaning that their sum is equivalent to the original object. The general % calling syntax is: % >> object=sharpen(object,choice,value); % ...
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/limit.m
2,391
utf_8
666019f7f4ddbe0474dcdfadb20d2ce0
% LIMIT Limit object to a region of interest % % This method defines a region of interest in a Signal % object, limiting the range used in calculations and visualization. % % Usage: % >> object=limit(object,[lower upper]); % specify bounds in Grid units % >> object=limit(object,[lower upper],'fraction'); % spec...
github
SMASHtoolbox/release-master
crop.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/crop.m
1,354
utf_8
c96b5baaa3a72d26fe87e6ec8902f094
% CROP Crop Grid range % % This method crops SignalGroup objects, disposing all information outside % of the specified Grid bound. % >> new=crop(object,bound); % The "bound" input must be an array specifing the minimum and maximum Grid % values of the crop region. All grid points inside this region are passed % to ...
github
SMASHtoolbox/release-master
smooth.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/smooth.m
1,902
utf_8
e3e5b8cc5a1a2283d614b960f7bcc7c1
% SMOOTH Smooth Signal Data % % This method smooths the Data array in Signal objects, removing high % frequency content. The general calling syntax is: % object=smooth(object,choice,value); % Three smoothing choices are supported. % -'mean' performs local averaging. Value specifies full width. % -'polynomia...
github
SMASHtoolbox/release-master
locate.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/locate.m
2,177
utf_8
ebdf2e72180912f5de6b36d7fa66ef3b
% locate Locate feature in an object % % This method locates features in a Signal object. % report=locate(object,shape); % Supported shapes include a Gaussian 'peak' (default) and and error % function 'step'. The output "report" is a structure of best fit % parameters. % % Requesting a second output: % [report,c...
github
SMASHtoolbox/release-master
fft.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/fft.m
10,742
utf_8
eef424bff8af2a85efbaa78cb57c6def
% fft Calculate Fast Fourier transforms % % This method calculates the spectrum of a Signal over the limited region. % The calling syntax is: % >> [frequency,spectrum,option]=fft(object,name,value,...); % where name/value pairs specify options for the FFT calculation. Up to % three output arguments are returned. % ...
github
SMASHtoolbox/release-master
replace.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/replace.m
1,059
utf_8
4c86f74129c88e00722980a97e57a4a8
% REPLACE Replace Data values % % This method replaces Data values in a Signal object. Replacement can be % specified by a logical array: % >> object=replace(object,object.Grid<0,value); % negative Grid locations % or with a [upper lower] bound array. % >> object=replace(object,[left right],value); % left/right G...
github
SMASHtoolbox/release-master
estimateRange.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/estimateRange.m
1,505
utf_8
73dabc534d12fb666cf5d7fddd999ea0
% estimateRange Estimate signal range % % This method estimates the minimum and maximum values of a signal based on % local averaging over a specified duration. % [range,uncertainty]=estimateRange(object,duration); % The input "duration" must be larger than signal's grid spacing. The % output "range" is an array co...
github
SMASHtoolbox/release-master
hilbert.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/hilbert.m
1,627
utf_8
d513b1940343bfc7083f7430adc6c539
% hilbert Calculate Hilbert transform % % This method generates a complex quadrature signal from a real signal % using a Hilbert transform. By default, frequencies below 1% of the % Nyquist limit are removed by a low pass filter. % new=hilbert(object); % The characteristic width (tanh function) of the low pass filt...
github
SMASHtoolbox/release-master
reset.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/reset.m
1,301
utf_8
7e20b470d3b645125dfd8dad22f4ce74
% RESET Reset Grid/Data values % % This method resets the Grid and Data stored in a Signal object. Arrays % can be passed directly into the object: % >> object=reset(object,Grid,Data); % where grid and data are arrays of consistent size. Passing an empty % array bypasses the reset. % >> object=reset(object,[],...
github
SMASHtoolbox/release-master
summarize.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/summarize.m
3,508
utf_8
2deabfeb56354808059ec71f5f368942
% SUMMARIZE Summarize object information % % This method provides a statistical summary of the information stored in a % Signal object. % >> report=summarize(object); % The output "report" is a structure describing the Grid and Data contained % in the limited region. Calling the method with no output: % >> sum...
github
SMASHtoolbox/release-master
regrid.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/regrid.m
1,733
utf_8
ac2ff23f9fc4fc28169e278f82cb35cb
% REGRID Transfer Signal object onto a new grid % % This method interpolates an existing object into a new object on a % specified grid. % >> new=regrid(object,x); % If no grid is specified, a uniformly spaced grid is calculated from the % existing grid. % >> object=regrid(object); % This technique may needed bef...
github
SMASHtoolbox/release-master
integrate.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/integrate.m
548
utf_8
9fddecc3cbecd9b21f76bffc0531b411
% INTEGRATE Numerically integrate a Signal object % % This method numerically integrates a Signal object, resulting in a new % object. % >> new=integrate(object); % Trapezoidal integration on the object's Grid array is used; no input % parameters are accepted. % % See also Signal, differentiate % % % created Novemb...
github
SMASHtoolbox/release-master
estimateNoise.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/estimateNoise.m
3,206
utf_8
a0de3cb0fecc884fad266d1af3b61c5e
% estimateNoise Estimate random noise % % This method estimates random noise content of a signal. % [sigma,noise]=estimateNoise(object); % The output "sigma" is the RMS noise level (scalar) in the time domain. % The output "noise" is the noise power spectrum (Signal object). These % results are calculated as follow...
github
SMASHtoolbox/release-master
create.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/create.m
2,453
utf_8
3cddb51abfbffd6b030711e707d8af06
function object=create(object,varargin) object.Name='Signal object'; object.GraphicOptions=SMASH.General.GraphicOptions; object.GraphicOptions.Marker='none'; object.GraphicOptions.LineStyle='-'; Narg=numel(varargin); switch Narg case 2 % standard mode: Signal(x,y) switch class(varargin{2}) ...
github
SMASHtoolbox/release-master
correlate.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/correlate.m
1,455
utf_8
f7a23b8b7a5d374b88fcc0c6ae3ae370
% CORRELATE Calculate correlation between two objects % % This methods correlates two Signal objects [?], creating a new object. % >> new=correlate(object,pattern); % The new object inherits most of its properties from the first input. As % such, the second input should be used as the "pattern" signal. % % If no ou...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/restore.m
248
utf_8
5a88680279b4948259e47fd33b8bd167
% restore Restore object from an archive function object=restore(data) object=SMASH.SignalAnalysis.Signal([],NaN); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
merge.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/merge.m
1,992
utf_8
66d1f60f68b20251c8fbec65f048eda1
% MERGE Merge Signal objects into a single object % % This method merges mutiple Signal objects into a single object. % >> new=merge(object1,object2,...); % The new object Grid is determined by the outermost points of the source % object, spaced by the smallest source grid spacing. Source objects are % added to thi...
github
SMASHtoolbox/release-master
transfer.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/transfer.m
2,160
utf_8
a799f78761415c7eac935f6b7573495f
% transfer Apply transfer function % % This method applies a user specified transfer function to a Signal % object. % new=transfer(object,myfunc); % The input "myfunc" is a handle to a function that accepts one input and % returns one output of the same size. For example: % myfunc=@(f) 1./(1+2i*pi*f*tau) % descr...
github
SMASHtoolbox/release-master
shift.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/shift.m
690
utf_8
7a796379ace31c715b0dbc6b4c149574
% SHIFT Shift object Grid array % % This method adds a Signal object's Grid array with a scalar value, % shifting the horizontal axis. % object=shift(object,value); % % % See also Signal, map, scale % % % created October 4, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=shift(object,value) ...
github
SMASHtoolbox/release-master
makeGridUniform.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/makeGridUniform.m
1,387
utf_8
facae1521398794f8a9075ae3235593a
% makeGridUniform Enforce uniform Signal grid % % >> object=makeGridUniform(object); % % See also Signal, verifyGrid % % % created November 18, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=makeGridUniform(object) if isempty(object.GridUniform) object=verifyGrid(object); end if object....
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/view.m
2,263
utf_8
2aa3432c9978bef223602efe7b748578
% VIEW View Signal object graphically % % This method displays Signal objects as line plots, which are drawn in a % new figure by default. % >> view(object); % >> h=view(object); % return line's graphic handle % The line's properties (color, width, etc.), axes labels, and title are % defined by the object. % % T...
github
SMASHtoolbox/release-master
export.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/export.m
1,636
utf_8
e1ce22eefaf8e91c87a132f4f52d0e6d
% EXPORT Export object to a basic data file % % This method exports a Signal object to a basic data file, recording only % the Grid/Data arrays in the limited region. % >> export(object,filename); % typical file extensions: *.txt, *.dat, *.out, ... % By default, Signal objects are exported to a text file using the '...
github
SMASHtoolbox/release-master
SGderivative.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/private/SGderivative.m
3,643
utf_8
3346fb47b713f3ce5992a8f7431dcb8b
% SGderivative : calculate a smooth derivative using the Savitzky-Golay % method. The derivative level may be specified by an array of positive % integers (including zero); the result for each array entry is returned as % a separate function output. The order and number of points used in the % calculation are specifie...
github
SMASHtoolbox/release-master
erffit.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/private/erffit.m
1,652
utf_8
7362593209d401494767dd71f4083daf
function report=erffit(x,y,guess) % manage input if isempty(guess) guess=[mean(x) (max(x)-min(x))/2]; end % initial preparations options=optimset('TolX',1e-6,'TolFun',1e-6); % normalize data x0=min(x); Lx=max(x)-x0; x=(x-x0)/Lx; y0=min(y); Ly=max(y)-y0; y=(y-y0)/Ly; guess(1)=(guess(1)-x0)/Lx; guess(2)=guess(2)...
github
SMASHtoolbox/release-master
gaussfit.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/private/gaussfit.m
1,785
utf_8
9a3bdff7fcdc711ae3422d698c5ba710
% gaussfit function report=gaussfit(x,y,guess,bound) % manage input if isempty(guess) [~,index]=max(abs(y)); xp=x(index); %xtemp=reshape(x-xp,size(y)); %sigma=sqrt(sum(y.*(xtemp-xp).^2)/sum(y)); sigma=(max(x)-min(x))/4; guess=[xp sigma]; end % inital preprations options=optimset('TolX',1e-6,'T...
github
SMASHtoolbox/release-master
register.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/old/register.m
2,455
utf_8
8e7ffa746a57af8e6a263518c397e3af
% register Place Signal objects on a common Grid array % % This method accepts two or more Signal objects, determines a consistent % time base, and places each object on that time base. % >> [object1,object2,...]=register(object1,object2,...); % % See also Signal % % % created November 14, 2013 by Daniel Dolan (San...
github
SMASHtoolbox/release-master
unchop.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/old/unchop.m
3,847
utf_8
55c4b920aaa2e732e03ec5aa390f2cfa
% unchop Analyze chopped signal % % This method calculates high/low values from a chopped signal. These % values are determined from step analysis of the smoothed signal. % report=unchop(object); % The output "report" is a structure of amplitude, basline, and uncertainty % values. % % Analysis parameters are specif...
github
SMASHtoolbox/release-master
explore.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/develop/explore.m
2,728
utf_8
205968bd4656bf3d86a95168f172b8be
% EXPLORE Interactive object exploration % % This method displays signal objects in an figure that % provides interactive manipulation. % >> explore(object); % % See also Signal, conv, crop, limit, locate, map, scale, shift, % smooth, store, transform, view % % created October 5, 2013 by Daniel Dolan (Sandia Natio...
github
SMASHtoolbox/release-master
unchop.m
.m
release-master/+SMASH/+SignalAnalysis/@Signal/develop/unchop.m
3,659
utf_8
f3d4a3f0b51bd5a72abcbb375a720e63
% UNDER CONSTRUCTION % unchop Analyze chopped signal % % This method calculates high/low values from a chopped signal. These % values are determined from local averages over a specified duration. % [range,uncertainty]=unchop(object,duration); % Signal range is %local averaging are returned in the output % struct...
github
SMASHtoolbox/release-master
mend.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/mend.m
724
utf_8
77ec00da72fc9015339d8fe5bf66a9fb
% mend Remove NaN data from a SignalGroup object % % This function removes NaN data in a SignalGroup object. % object=mend(object); % NaN values bracketed by standard entries are replaced by linear % interpolation; NaN entries that extent to the grid boundary are replaced % with the first numeric value. % % NOTE: ...
github
SMASHtoolbox/release-master
differentiate.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/differentiate.m
935
utf_8
222f0a4f3ae367154b25229e01b84411
% DIFFERENTIATE Calculate numerical derivative % % This method numerically differentiates a SignalGroup object, resulting in % a new object. % >> new=differentiate(object); % By default, a centered difference approximation is used to calculate the % derivative. Polynomial smoothing (Savitzky-Golay method) of order ...
github
SMASHtoolbox/release-master
map.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/map.m
1,631
utf_8
e21b1e530749d435ce34346116010101
% MAP Map object coordinate(s) to a new representation % % This method allows applies a mapping function to the Grid or Data array % in SignalGroup object. It is intended for advanced users only. For simple % Grid transformations, use the shift and scale methods. Data % transformations can often be performed directl...
github
SMASHtoolbox/release-master
gather.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/gather.m
1,394
utf_8
bf629dc346473e7f5c6da60038089570
% GATHER Combine objects into a SignalGroup % % This method combines SignalGroup (and Signal) objects into a new object % with a common Grid. % >> new=gather(object1,object2,...) % % See also SignalGroup, split % % % created November 22, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=gather(v...
github
SMASHtoolbox/release-master
sharpen.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/sharpen.m
801
utf_8
9227f1d065d26aee6e0598f4de47ae34
% SHARPEN Sharpen SignalGroup Data % % This method sharpens the Data array in Signal objects, removing low % frequency content. The methods sharpen and smooth are compliments, % meaning that their sum is equivalent to the original object. The general % calling syntax is: % >> object=sharpen(object,choice,value); %...
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/limit.m
1,520
utf_8
c1b5791eeb0a31809a92e64864a5551f
% LIMIT Limit SignalGroup to a region of interest % % This method defines a region of interest in a SignalGroup % object, limiting the range used in calculations and visualization. % >> object=limit(object,[lower upper]); % specify Grid range % Information outside the limited region is *not* destroyed and can be % ...
github
SMASHtoolbox/release-master
crop.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/crop.m
1,176
utf_8
5f14ee81140a8658cdef22912029856b
% CROP Crop Grid range % % This method crops SignalGroup objects, disposing all information outside % of the specified Grid bound. % >> new=crop(object,bound); % The "bound" input must be an array specifing the minimum and maximum Grid % values of the crop region. All grid points inside this region are passed % to ...
github
SMASHtoolbox/release-master
split.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/split.m
1,413
utf_8
e5bb7b88aaed4e1ea2d80f9522d31a39
% SPLIT Divide SignalGroup into Signal objects % % This method breaks up a SignalGroup object into a collection of Signal % objects. % [object1,object2,...]=split(object) % % Specific signals can be extracted by passing in index array. For % example: % [object3,object2]=split(object,[3 2]); % extracts the second...
github
SMASHtoolbox/release-master
smooth.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/smooth.m
1,264
utf_8
316621fa8a2f1ad6de8bb05f5edd513a
% SMOOTH Smooth SignalGroup Data % % This method smooths the Data array in a SignalGroup object, removing high % frequency content. The general calling syntax is: % >> object=smooth(object,choice,value); % Three smoothing choices are supported. % -'mean' performs local averaging (value specifies full width) % ...
github
SMASHtoolbox/release-master
locate.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/locate.m
1,883
utf_8
78f176b07c0d47622b141a18a1fcbc42
% LOCATE Locate feature in an object % % This method locates features in a SignalGroup object. By default, % the feature is assumed to be a single Gaussian peak. % >> report=locate(object); % The output "report" contains information about the located features. % % Single Gaussian peak location can be explicitly req...
github
SMASHtoolbox/release-master
fft.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/fft.m
225
utf_8
17a2cca685fde65c7985fe72a6a2f8f8
function fft(varargin) message={}; message{end+1}='ERROR: method not supported for SignalGroup objects'; message{end+1}='Use "split" method to create separate Signals for "fft" calculations'; error('%s\n',message{:}); end
github
SMASHtoolbox/release-master
replace.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/replace.m
1,283
utf_8
f456ca7a3740875d0f130761e5218085
% REPLACE Replace data values in an object % % This method replaces elements of the Data property in a SignalGroup % object. Replacement can be specified by a logical array: % >> object=replace(object,object.Grid<0,value); % replace Data at negative Grid locations % or with a [upper lower] bound array. % >> objec...
github
SMASHtoolbox/release-master
convolve.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/convolve.m
361
utf_8
d82d50c747d644d7d6b96448fcc71ecd
% * method disabled * % % See also SignalGroup % % created November 22, 2013 by Daniel Dolan (Sandia National Laboratories) % function convolve(varargin) message={}; message{end+1}='ERROR: method not supported for SignalGroup objects'; message{end+1}='Use "split" method to create separate Signals for "convolve" calc...
github
SMASHtoolbox/release-master
estimateRange.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/estimateRange.m
1,035
utf_8
2fdac1d66981ad0e21e85acf490f8378
% estimateRange Estimate signal range % % This method estimates the minimum and maximum values of a signal based on % local averaging over a specified duration. % [range,uncertainty]=estimateRange(object,duration); % The input "duration" must be larger than signal's grid spacing. The % output "range" is two-column ...
github
SMASHtoolbox/release-master
reset.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/reset.m
1,522
utf_8
d59bfbd4fbb243f49c86e46fb925364a
% RESET Reset Grid/Data values % % This method resets the Grid and Data stored in a SignalGroup object. Arrays % can be passed directly into the object: % >> object=replace(object,Grid,Data); % where grid and data are arrays of consistent size. Passing an empty % array bypasses the reset. % >> object=replace(o...
github
SMASHtoolbox/release-master
regrid.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/regrid.m
1,399
utf_8
c780c22edfd92fb32fdd150aa3db86b3
% REGRID Transfer SignalGroup object onto a new grid % % This method interpolates an existing object into a new object on a % specified grid. % >> new=regrid(object,x); % If no grid is specified, a uniformly spaced grid is calculated from the % existing grid. % >> object=regrid(object); % This technique may neede...
github
SMASHtoolbox/release-master
integrate.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/integrate.m
530
utf_8
e9d897c41923db951f9272773c0913a5
% INTEGRATE Numerically integrate a SignalGroup % % This method numerically integrates a SignalGroup object, resulting in a % new object. % >> new=integrate(object); % Trapezoidal integration on the object's Grid array is used; no input % parameters are accepted. % % See also SignalGroup, differentiate % % % create...
github
SMASHtoolbox/release-master
evaluate.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/evaluate.m
763
utf_8
924953fa3f8fbc8701e1be2e2041c8a8
% EVALUATE Evaluate SignalGroup signals using user defined function(s) % % This method applies user defined function(s) on the SignalGroup data, % resulting in a new object. % >> new=evaluate(object,@myfunc); % % For example, to find the mean and standard deviation of the SignalGroup % signals: % >> new=evaluate...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/restore.m
288
utf_8
8bdd2433ffba92b45f1bd168c068d646
% restore Restore object from an archive function object=restore(data) object=SMASH.SignalAnalysis.SignalGroup([],NaN); object.Legend={}; object.Color=[]; name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
merge.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/merge.m
1,901
utf_8
3d81e3bca405551d1bfd9721121b7900
% MERGE Merge objects into a single object % % This method merges multiple SignalGroup objects (each containing the same % number of signals) into a single object. % >> new=merge(object1,object2,...); % The new object Grid is determined by the outermost points of the source % object, spaced by the smallest source gr...
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/view.m
4,238
utf_8
3ddd03be6673db23d295ef0c3e4d6aac
% UNDER CONSTRUCTION % VIEW View signals % % This method displays a signal group as a set of lines. These lines are % drawn in a common axes inside new figure by default. % view(object); % h=view(object); % return line graphic handle(s) % The line's properties (color, width, etc.), axes labels, and legend are %...
github
SMASHtoolbox/release-master
export.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/export.m
1,697
utf_8
735a844ac302d94161c5ccc1331da2e4
% EXPORT Export SignalGroup to a basic data file % % This method exports a SignalGroup object to a basic data file, recording % only the Grid/Data arrays in the limited region. % >> export(object,filename); % typical file extensions: *.txt, *.dat, *.out, ... % By default, Signal objects are exported to a text file u...
github
SMASHtoolbox/release-master
scale.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/old/scale.m
984
utf_8
8035faa2ea68e322fb9bddb3f15ec8f2
% SCALE Scale Grid array % % This method scales the Grid in a SignalGroup object by a specifed amount. % >> object=scale(object,scale); % % See also SignalGroup, shift % % % created November 24, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=scale(object,value) % handle input if (nargin<2) ...
github
SMASHtoolbox/release-master
ImportFile.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/old/ImportFile.m
2,626
utf_8
413dd21a69bad738f0b37c06b2d1767b
% This function manages file import for the SignalGroup creator. A lot of % the real effort is passed back to the Signal creator. % created November 24, 2012 function object=ImportFile(object,filename,format) % handle input if ischar(filename) filename={filename}; end for n=1:numel(filename) switch lower(fo...
github
SMASHtoolbox/release-master
shift.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/old/shift.m
983
utf_8
34918280eb462f3115dfa27c6d18003b
% SHIFT Shift Grid array % % This method shiftes the Grid in a SignalGroup object by a specifed % amount. % >> object=shift(object,value); % % See also SignalGroup, scale % % % created October 4, 2013 by Daniel Dolan (Sandia National Laboratories) % function object=shift(object,value) % handle input if (nargin<2)...
github
SMASHtoolbox/release-master
loadFiles.m
.m
release-master/+SMASH/+SignalAnalysis/@SignalGroup/old/loadFiles.m
1,784
utf_8
90186b8c576f021f95d889a34cca0f10
% UNDER CONSTRUCTION % loadFiles Load data from multiple files % % This method creates a SignalGroup object by loading data from multiple % files. % object=loadFiles(pattern); % determine format from file extension % object=loadFiles(pattern,format); % manually specify format. % The input "pattern" is a file name...
github
SMASHtoolbox/release-master
createWindow.m
.m
release-master/+SMASH/+SignalAnalysis/@DigitalWindow/createWindow.m
5,336
utf_8
9640f4ba4848a8ab97324deead1a3ddf
% hidden method function object=createWindow(object,name,parameter) assert(ischar(name),'ERROR: invalid window name'); name=lower(name); switch name case 'boxcar' local=@(t) ones(size(t)); object.Name='Boxcar'; case 'blackman' local=@(t) 0.42+0.5*cos(2*pi*t)+0.08*cos(4*pi*t); o...
github
SMASHtoolbox/release-master
plot.m
.m
release-master/+SMASH/+SignalAnalysis/@DigitalWindow/plot.m
519
utf_8
58b0ea92fe02acfbb16dfcf4e36da012
% plot Plot window function % % This method plots the window function on the current time base in a new % figure window. % plot(object); % h=plot(object); % returns graphic handle for plotted line % % See also DigitalWindow, evaluate % function varargout=plot(object) figure(); h=plot(object.Time,object.Data); xl...
github
SMASHtoolbox/release-master
calculateTransformPair.m
.m
release-master/+SMASH/+SignalAnalysis/@DigitalWindow/calculateTransformPair.m
1,097
utf_8
c82c7486be4594cb84d56189288635ee
% calculateTransformPair Window transform and conjugate % % This method calculates the frequency transform and its conjugate % function. % [transform,frequency]=calculateTransformPair(object); % The output "transform" is a complex array at the locations specified by % the output "frequency"; the latter runs from -1/...
github
SMASHtoolbox/release-master
tabulate.m
.m
release-master/+SMASH/+SignalAnalysis/@DigitalWindow/tabulate.m
816
utf_8
fd8bc0e2d06a0e0e2e5c82999d59a26a
% tabulate Tabulate window and transform pair % % This method tabulates the window and its Fourier transform. % result=tabulate(object); % The output "result" is a structure of lookup functions. Normalized time % and frequency values can be passed directly to these functions. % window=result.Window(time); % tra...
github
SMASHtoolbox/release-master
fft.m
.m
release-master/+SMASH/+SignalAnalysis/@DigitalWindow/fft.m
2,727
utf_8
0a2816401d531e8bcd297ad376fd6215
% fft Fast Fourier Transform with digital window % % This method performs a Fast Fourier Transform with a digital window. % [transform,frequency]=fft(object,signal); % The input "signal" can be numeric array of any size; arrays with fewer % elements than the SamplePoints property are padded with zeros, and larger % ...
github
SMASHtoolbox/release-master
estimateWidth.m
.m
release-master/+SMASH/+SignalAnalysis/@DigitalWindow/estimateWidth.m
806
utf_8
3c2edb71b3c4fa4432c115957db58ff2
% hidden method function value=estimateWidth(object,SamplePoints,PeakPoints) % manage input old=object.PrivatePoints; if (nargin < 2) || isempty(SamplePoints) SamplePoints=object.SamplePoints; else try object.SamplePoints=SamplePoints; catch ME throwAsCaller(ME); end end if (nargin < 3...
github
SMASHtoolbox/release-master
partition.m
.m
release-master/+SMASH/+SignalAnalysis/old/@ShortTime copy/partition.m
6,082
utf_8
fa34ba5e83454d73589b6ae613eeb7af
% PARTITION Manage partitioning % % This method controls how ShortTime objects are partitiond into local % analysis regions. Analysis regions *always* span an integer number of % Grid points, and regions are also separated by an integer number of Grid % points Partition parameters "points" and "skip" can be defined %...
github
SMASHtoolbox/release-master
analyze.m
.m
release-master/+SMASH/+SignalAnalysis/old/@ShortTime copy/analyze.m
3,706
utf_8
e37cae11931e8b1f60ac5c73c5ace1f7
% ANALYZE Apply local analysis % % This method applies a target function to local regions in a ShortTime % object. % >> result=analyze(object,target); % The target function should be passed as a function handle. Inline % functions can be used: % >> target=@(x,y) mean(y); % local mean % >> target=@(x,y) sqrt(m...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+SignalAnalysis/old/@ShortTime copy/restore.m
251
utf_8
ad86f9e6f073281925483823e3e64292
% restore Restore object from an archive function object=restore(data) object=SMASH.SignalAnalysis.ShortTime([],NaN); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+SignalAnalysis/old/@ShortTime copy/development/limit.m
874
utf_8
17fb6c5a8c96f9afc5a0d168dc60f08d
% limit Limit object to a region of interest % % This method is a special implementation of "limit" method for ShortTime % objects. It works in the same manner and then updates partitioning as % needed. % % See also ShortTime, Signal.limit % % % created December 15, 2014 by Daniel Dolan (Sandia National Laboratory) %...
github
SMASHtoolbox/release-master
comment.m
.m
release-master/+SMASH/+SignalAnalysis/@ShortTime/comment.m
656
utf_8
5cd0c68ba2ccd4ea377fbac440628706
% comment Edit comments associated with an object % % This method edits the "Comments" property of an object. When invoked: % object=comment(object); % a graphical window shows the existing description and allow changes to be % made. % % See also DataClass % % % created November 14, 2013 by Daniel Dolan (Sandia Na...
github
SMASHtoolbox/release-master
partition.m
.m
release-master/+SMASH/+SignalAnalysis/@ShortTime/partition.m
6,070
utf_8
c3a1725484dbb9244198c3434a774faf
% PARTITION Manage partitioning % % This method controls how ShortTime objects are partitiond into local % analysis regions. Analysis regions *always* span an integer number of % Grid points, and regions are also separated by an integer number of Grid % points Partition parameters "points" and "skip" can be defined %...
github
SMASHtoolbox/release-master
analyze.m
.m
release-master/+SMASH/+SignalAnalysis/@ShortTime/analyze.m
5,183
utf_8
bfead22ebe33d0c786a00a35cae6db01
% ANALYZE Perform local analysis % % This method applies a target function to local regions in a ShortTime % object. % result=analyze(object,target); % Target functions must accept one input and return at least one output. % The function's output is collected from each local region and returned as % a SignalGroup ob...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+SignalAnalysis/@ShortTime/restore.m
251
utf_8
ad86f9e6f073281925483823e3e64292
% restore Restore object from an archive function object=restore(data) object=SMASH.SignalAnalysis.ShortTime([],NaN); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
view.m
.m
release-master/+SMASH/+SignalAnalysis/@ShortTime/view.m
421
utf_8
5e474ef0c814fb5fb72e8efff1e13064
% view View object % % This method displays the Measurement in a ShortTime object. % view(object); % % See also SMASH.SignalAnalysis.ShortTime % % % created June 26, 2016 by Daniel Dolan (Sandia National Laboratory) % function varargout=view(object,varargin) if nargout==0 view(object.Measurement,varargin{:}); ...
github
SMASHtoolbox/release-master
limit.m
.m
release-master/+SMASH/+SignalAnalysis/@ShortTime/development/limit.m
874
utf_8
17fb6c5a8c96f9afc5a0d168dc60f08d
% limit Limit object to a region of interest % % This method is a special implementation of "limit" method for ShortTime % objects. It works in the same manner and then updates partitioning as % needed. % % See also ShortTime, Signal.limit % % % created December 15, 2014 by Daniel Dolan (Sandia National Laboratory) %...
github
SMASHtoolbox/release-master
removeBaseline.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/removeBaseline.m
3,294
utf_8
c2d5eb07d68f2f5fb14382db75ddc931
% removeBaseline Remove baseline signal from ScatterPatch object % % This method removes the baseline signal from a ScatterPatch object. % % To graphically select the baseline signal and start of removal region: % removeBaseline(object); % -User is first prompted to choose a representative baseline region. % The ...
github
SMASHtoolbox/release-master
process.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/process.m
853
utf_8
c7634f0d6aa25b829d695d90e5f34a7d
function varargout=process(object,ProcessFcn,time) % manage input if (nargin < 2) || isempty(ProcessFcn) || strcmpi(ProcessFcn,'weighted') ProcessFcn=@weightBlocks; else end if (nargin < 3) || isempty(time) time=uniquetol(object.MappedData(:,1)); else end % data=object.MappedData; data=data(data(:,...
github
SMASHtoolbox/release-master
disable.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/disable.m
5,654
utf_8
21e024b2a628d8217f27cb28943ede30
% disable Disable patches % % This method disable patches for plotting/processing. The default call: % disable(object); % supports interactive selection in a new figure window. Clicking or % click/dragging on the plot disables patches. Pressing the "u" key will % undo the most recent selection (up to 16 levels). ...
github
SMASHtoolbox/release-master
mirror.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/mirror.m
961
utf_8
b7464872f70d9bdb74e6e109ce2b04a6
% mirror Vertical patch duplication % % This method duplicates patches about the horizontal axis. % mirror(object,group); % The input "group" indicates the patch groups to be mirrored; all groups % are used if this argument is empty or omitted. Values must be consistent % with the GroupList property. % % See also ...
github
SMASHtoolbox/release-master
cropFrequency.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/cropFrequency.m
1,297
utf_8
c723d3618e1945887228e1457f78f1e8
% cropFrequency Crop ScatterPatch object to range of frequencies % % This method crops the data in a ScatterPatch object to a range of % frequencies chosen by the user. % % To graphically select the region: % cropFrequency(object); % To specify the region: % cropFrequency(object, [minimumFrequency, maximumFrequency...
github
SMASHtoolbox/release-master
enable.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/enable.m
2,767
utf_8
8ea586101806f8675119cc6f44258369
% enable Enable patches % % This method enables patches for plotting/processing. The default call: % enable(object); % enable all patches. % % Specific enable criterea are specified by name/value pairs. % enable(object,name,value,...); % Valid names include: % -'Horizontal', which specifies a *mapped* horiz...
github
SMASHtoolbox/release-master
testNumber.m
.m
release-master/+SMASH/+SignalAnalysis/@ScatterPatch/private/testNumber.m
146
utf_8
d096f3e552435802c299a1cd8ce9692e
% private function to verify numeric scalars function valid=testNumber(in) valid=false; if isnumeric(in) && isscalar(in) valid=true; end end
github
SMASHtoolbox/release-master
analyze.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/analyze.m
3,513
utf_8
c2658ea1c31cfe50af90e795d2d12621
% ANALYZE Apply local spectral analysis % % This method performs local spectra analysis on a STFT object. Analysis % parameters are defined by the FFToptions and Duration properties of the % source object. % result=analyze(object); % The output "result" is an Image object containing spectra from the % partitions of...
github
SMASHtoolbox/release-master
restore.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/restore.m
247
utf_8
3a8bbbbf9df06adf1ecc1a094ebfc160
% restore Restore object from an archive function object=restore(data) object=SMASH.SignalAnalysis.STFT([],1:10); name=fieldnames(data); for n=1:numel(name) if isprop(object,name{n}) object.(name{n})=data.(name{n}); end end end
github
SMASHtoolbox/release-master
singlePeak.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/private/singlePeak.m
2,665
utf_8
900218668fd3be6a624f808f2cb5abd7
% singlePeak Single (upward) peak analysis % % This function analyzes a (x,y) data set assuming that a single, upward % peak is present. % >> result=singlePeak(x,y,method,threshold); % The output "result" is a 3x1 array containing the peak position, width, % and y-value. The "method" and "threshold" inputs are opt...
github
SMASHtoolbox/release-master
fitGaussian.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/private/fitGaussian.m
2,270
utf_8
4ce043c1154304eeb44176211b1970ba
% fitGaussian : fit Gaussian curve to (x,y) data % % This function fits a Gaussian curve to (x,y) data. % >> [param,fit]=itGaussian(x,y,guess,options) % The inputs "guess" and "options" are optional. If used, "guess" % should be a 1x2 array specifiying peak position and width. The "options" % input is used to cont...
github
SMASHtoolbox/release-master
gaussianfits.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/private/development/gaussianfits.m
3,243
utf_8
72ff17e44a8ace881e5c7f2794c1355a
% gaussianfits : fit data to Gaussian curves % % Usage: % >> [params,yfit]=gaussianfit(x,y,guess,options); %function [params,yfit]=gaussianfits(x,y,Npeaks,guess,options) function [param,fit]=gaussianfits(x,y,varargin) % handle input assert(nargin>=2,'ERROR: insufficient number of inputs'); assert(numel(x)==numel(y),...
github
SMASHtoolbox/release-master
gaussianfit.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/private/development/gaussianfit.m
1,759
utf_8
cf446bd9a0ff00ecb476ea494506cac9
% gaussianfit : fit data to Gaussian curve % % Usage: % >> [params,yfit]=gaussianfit(x,y,guess,options); function [params,yfit]=gaussianfit(x,y,guess,options) % handle mandatory input if nargin<2 error('Insufficient number of inputs'); end Ndata=numel(x); if numel(x) ~= Ndata error('Inconsistent sized data a...
github
SMASHtoolbox/release-master
fitParabola.m
.m
release-master/+SMASH/+SignalAnalysis/@STFT/private/development/fitParabola.m
654
utf_8
bcf9e5474f8445fe6de4cf0989abb160
% UNDER CONSTRUCTION! function [param,fit]=fitParabola(x,y) % handle input assert(nargin==2,'ERROR: invalid number of inputs'); if isempty(x) x=1:numel(y); end assert(numel(x)==numel(y),'ERROR: incompatible data'); % prepare data x=x(:); x0=min(x); Lx=max(x)-x0; x=(x-x0)/Lx; y=y(:); y0=min(y); Ly=max(y)-y0; y=(y...