Function ouster::sdk::mapping::to_string

Function Documentation

inline std::string ouster::sdk::mapping::to_string(const LossFunction lf)

Converts a LossFunction enum value to its corresponding string.

This function takes a LossFunction enum and returns a string representation of that enum. Valid return values are: “HUBER_LOSS”, “CAUCHY_LOSS”, “SOFT_L_ONE_LOSS”, “ARCTAN_LOSS”, and “TRIVIAL_LOSS”.

Parameters:

lf[in] – The LossFunction enum to convert.

Returns:

A std::string containing the name of the loss function.