Microscopy Image Browser  2.82
MIB
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
windv.m File Reference

windv(vector, window size, AsInSmooth) vectorized version of windv() smooths a vector using a window of +/- window size window size is reduced at the edges More...

Functions

function vector2 = windv (vector1, w_size, AsInSmooth)
 windv(vector, window size, AsInSmooth) vectorized version of windv() smooths a vector using a window of +/- window size window size is reduced at the edges More...
 

Detailed Description

windv(vector, window size, AsInSmooth) vectorized version of windv() smooths a vector using a window of +/- window size window size is reduced at the edges

Function Documentation

◆ windv()

function vector2 = windv (   vector1,
  w_size,
  AsInSmooth 
)

windv(vector, window size, AsInSmooth) vectorized version of windv() smooths a vector using a window of +/- window size window size is reduced at the edges

Parameters
vector1vector to smooth
w_sizea number with a window size to use; w_size==1 gives average window of 3 points, w_size==2 gives average window of 5 points
AsInSmoothan optional switch how to handle the end points. When AsInSmooth == 1 the results are similar to the Matlab smooth function of the curve fitting toolbox

Referenced by mibCalcCurveLength(), mibCalcShifts(), and mibRunningAverageSmoothPoints().

Here is the caller graph for this function: