Shortcuts

asteroid.dsp.deltas module

asteroid.dsp.deltas.compute_delta(feats: <sphinx.ext.autodoc.importer._MockObject object at 0x7f85b24da310>, dim: int = -1) → <sphinx.ext.autodoc.importer._MockObject object at 0x7f85b24f2210>[source]

Compute delta coefficients of a tensor.

Parameters:
  • feats – Input features to compute deltas with.
  • dim – feature dimension in the feats tensor.
Returns:

Tensor – Tensor of deltas.

Examples
>>> import torch
>>> phase = torch.randn(2, 257, 100)
>>> # Compute instantaneous frequency
>>> inst_freq = compute_delta(phase, dim=-1)
>>> # Or group delay
>>> group_delay = compute_delta(phase, dim=-2)
asteroid.dsp.deltas.concat_deltas(feats: <sphinx.ext.autodoc.importer._MockObject object at 0x7f85b24f2290>, order: int = 1, dim: int = -1) → <sphinx.ext.autodoc.importer._MockObject object at 0x7f85b24f2c90>[source]

Concatenate delta coefficients of a tensor to itself.

Parameters:
  • feats – Input features to compute deltas with.
  • order – Order of the delta e.g with order==2, compute delta of delta as well.
  • dim – feature dimension in the feats tensor.
Returns:

Tensor – Concatenation of the features, the deltas and subsequent deltas.

Examples
>>> import torch
>>> phase = torch.randn(2, 257, 100)
>>> # Compute second order instantaneous frequency
>>> phase_and_inst_freq = concat_deltas(phase, order=2, dim=-1)
>>> # Or group delay
>>> phase_and_group_delay = concat_deltas(phase, order=2, dim=-2)
Read the Docs v: v0.4.4
Versions
latest
stable
v0.4.4
v0.4.3
v0.4.2
v0.4.1
v0.4.0
v0.3.5_b
v0.3.4
v0.3.3
v0.3.2
v0.3.1
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.