gleam_synapses/model/encoding/discrete_attribute

Functions

pub fn decode(
  discrete_attribute: Attribute,
  encoded_values: ZList(Float),
) -> String
pub fn deserialized(
  discrete_attribute_serialized: AttributeSerialized,
) -> Attribute
pub fn encode(
  discrete_attribute: Attribute,
  value: String,
) -> ZList(Float)
pub fn json_decoder() -> Decoder(AttributeSerialized)
pub fn json_encoded(
  discrete_attribute_serialized: AttributeSerialized,
) -> JsonValue
pub fn serialized(
  discrete_attribute: Attribute,
) -> AttributeSerialized
pub fn updated(
  discrete_attribute: Attribute,
  datapoint: Map(String, String),
) -> Attribute