Free functions#
General#
|
Create binned data by binning input along all dimensions given by edges. |
|
Create a binned variable from bin indices. |
|
Create a binned variable by "broadcasting" fill values to bins of given sizes. |
|
Slice down the input object until only the supplied keep dimension is left (effectively 'collapsing' all but one dimension), and return a dict of 1D slices. |
|
Use non-linear least squares to fit a function, f, to data. |
|
Create a function for transforming input variables based on element-wise operation. |
|
Create binned data by grouping input by one or more coordinates. |
|
Compute a histogram. |
|
Element-wise logical negation. |
|
Element-wise logical and. |
|
Element-wise logical or. |
|
Element-wise logical exclusive-or. |
|
Create a "lookup table" from a histogram (data array with bin-edge coord). |
|
Compute a histogram, skipping NaN values. |
|
Merge two datasets or data groups into one. |
|
Computes the points in the middle of adjacent elements of x. |
|
Rebin a data array or dataset. |
|
Create helper object for reduction operations over list or tuple of inputs. |
|
Slice input along given dim, and return all the slices in a dict. |
|
Sort variable along a dimension by a sort key or dimension label. |
|
Return the input's standard deviations as values. |
|
Convert the variable to a different unit. |
|
Compute new coords based on transformations of input coords. |
|
Return the input without variances. |
|
Return the input's variances as values. |
|
Return elements chosen from x or y depending on condition. |
Math#
|
Element-wise absolute value. |
|
Element-wise addition. |
|
Round up to the nearest integer of all values passed in x. |
|
Element-wise cross product. |
|
Element-wise true division. |
|
Element-wise dot product. |
|
Computes the error function. |
|
Computes the complementary error function. |
|
Element-wise exponential. |
|
Round down to the nearest integer of all values passed in x. |
|
Element-wise floor division. |
|
Element-wise natural logarithm. |
|
Element-wise base 10 logarithm. |
|
Element-wise remainder. |
|
Element-wise product. |
|
Element-wise negative. |
|
Element-wise norm. |
|
Element-wise power. |
|
Element-wise reciprocal. |
|
Round to the nearest integer of all values passed in x. |
|
Element-wise square-root. |
|
Element-wise difference. |
Shape#
|
Broadcast a Variable or a DataArray. |
|
Concatenate input arrays along the given dimension. |
|
Flatten multiple dimensions into a single dimension. |
|
Fold a single dimension of a variable or data array into multiple dims. |
|
Remove dimensions of length 1. |
|
Transpose dimensions of the input. |
Comparison#
Comparison operators compare element-wise and ignore variances.
|
Checks if all elements in the inputs are close to each other. |
|
Check if all values of a variable are sorted. |
|
Element-wise '==' (equal). |
|
Element-wise '>' (greater). |
|
Element-wise '>=' (greater_equal). |
|
Full comparison of x and y. |
|
Checks element-wise if the inputs are close to each other. |
|
Check if the values of a variable are evenly spaced. |
|
Check if the values of a variable are sorted. |
|
Element-wise '<' (less). |
|
Element-wise '<=' (less_equal). |
|
Element-wise '!=' (not_equal). |
inf
and nan
handling#
Special-value (inf
and nan
) checks.
inf
and nan
in the variances is ignored.
|
Element-wise isnan (true if an element is nan). |
|
Element-wise isinf (true if an element is inf). |
|
Element-wise isfinite (true if an element is finite). |
|
Element-wise isposinf (true if an element is a positive infinity). |
|
Element-wise isneginf (true if an element is a negative infinity). |
|
Element-wise special value replacement. |
Reduction#
Reduction operations are operations to remove one or more dimension, e.g., by performing a sum over all elements along a dimension.
|
Logical AND over input values. |
|
Logical OR over input values. |
|
Return the cumulative sum along the specified dimension. |
|
Maximum of elements in the input. |
|
Arithmetic mean of elements in the input. |
|
Compute the median of the input values. |
|
Minimum of elements in the input. |
|
Maximum of elements in the input ignoring NaN's. |
|
Arithmetic mean of elements in the input ignoring NaN's. |
|
Compute the median of the input values ignoring NaN's. |
|
Minimum of elements in the input ignoring NaN's. |
|
Compute the standard deviation of the input values ignoring NaN's. |
|
Sum of elements in the input ignoring NaN's. |
|
Compute the variance of the input values ignoring NaN's. |
|
Compute the standard deviation of the input values. |
|
Sum of elements in the input. |
|
Compute the variance of the input values. |
Trigonometric#
|
Element-wise sine. |
|
Element-wise cosine. |
|
Element-wise tangent. |
|
Element-wise inverse sine. |
|
Element-wise inverse cosine. |
|
Element-wise inverse tangent. |
|
Element-wise inverse tangent of y/x determining the correct quadrant. |
Hyperbolic#
|
Element-wise hyperbolic sine. |
|
Element-wise hyperbolic cosine. |
|
Element-wise hyperbolic tangent. |
|
Element-wise inverse hyperbolic sine. |
|
Element-wise inverse hyperbolic cosine. |
|
Element-wise inverse hyperbolic tangent. |
Group-by (split-apply-combine)#
Reduction#
|
Group dataset or data array based on values of specified labels. |
Counts#
“Counts” refers to the default unit of data after histogramming. It is also known as frequency. This can be converted into a counts (frequency) density, e.g., for visualization purposes.
|
Converts counts to count density on a given dimension. |
|
Converts counts to count density on a given dimension. |
Visualization#
|
Return the HTML representation of an object. |
|
Return an SVG representation of a variable, data array, or dataset. |
|
Wrapper function to plot data. |
|
Show a graphical representation of a variable, data array, or dataset. |
|
Show graphical representation of a graph as required by |
|
Create an HTML table from the contents of the supplied object. |
|
Render am object to HTML in a Jupyter notebook. |
Logging#
Return the global logger used by Scipp. |
|
Display the log widget associated with the Scipp logger. |