Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

ToContinuous and ToCategorical components #273

@Shoeboxam

Description

@Shoeboxam

Some utility components that manipulate properties.

ToContinuous takes in categorical integers, and outputs continuous integers. Pseudocode:

Nature::Continuous { lower: min(categories), upper: max(categories) }

ToCategorical takes in continuous integers, and outputs categorical integers. Pseudocode:

Nature::Categorical {categories: (lower..upper).collect() }

Given the recent refactorings to release ownership in the runtime, this takes zero allocations and is a no-op in the runtime.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions