Skip to contents

Make a Transformation that either truncates or imputes records with constant to match a provided size.

Usage

make_resize(
  input_domain,
  input_metric,
  size,
  constant,
  .MO = "SymmetricDistance"
)

Arguments

input_domain

Domain of input data.

input_metric

Metric of input data.

size

Number of records in output data.

constant

Value to impute with.

.MO

Output Metric. One of InsertDeleteDistance or SymmetricDistance

Value

A vector of the same type TA, but with the provided size.

Details

make_resize in Rust documentation.

Supporting Elements:

  • Input Domain: VectorDomain<AtomDomain<TA>>

  • Output Domain: VectorDomain<AtomDomain<TA>>

  • Input Metric: MI

  • Output Metric: MO