Skip to main content

elastic_partial_match

Function elastic_partial_match 

Source
pub fn elastic_partial_match(
    template: &[f64],
    target: &[f64],
    argvals_template: &[f64],
    argvals_target: &[f64],
    config: &PartialMatchConfig,
) -> Result<PartialMatchResult, FdarError>
Expand description

Find the best elastic partial match of template within target.

Slides a variable-length window over the target curve and performs elastic alignment of the template to each window, returning the window position and warp with minimum elastic distance.

§Arguments

  • template — Short template curve (length m_t)
  • target — Longer target curve (length m_f)
  • argvals_template — Evaluation points for the template (length m_t)
  • argvals_target — Evaluation points for the target (length m_f)
  • config — Partial matching configuration

§Errors

Returns FdarError::InvalidDimension if lengths are inconsistent. Returns FdarError::InvalidParameter if min_span is not in (0, 1].