class Ai4cr::Utils::IoData::TextFileIodFloat

Defined in:

ai4cr/utils/io_data/text_file_io_float.cr

Constant Summary

CHARS_AT_A_TIME_DEFAULT = 4
INPUT_SIZE_MIN = Ai4cr::NeuralNetwork::Rnn::RnnSimpleConcerns::PropsAndInits::INPUT_SIZE_MIN
UTF_MAX_AS_FLOAT = Char::MAX_CODEPOINT.to_f
UTF_MAX_CHAR_STR = Char::MAX_CODEPOINT.chr.to_s

Class Method Summary

Instance methods inherited from class Ai4cr::Utils::IoData::Abstract

default_to_bit_size : Int32 default_to_bit_size, default_to_bit_size=(default_to_bit_size : Int32) default_to_bit_size=, file_path : String file_path, file_path=(file_path : String) file_path=, iod : Array(Array(Float64)) iod, iod=(iod : Array(Array(Float64))) iod=, iod_certainty(iod_guessed) iod_certainty, iod_certainty_per_guess(iod_guessed) : Array(Float64) iod_certainty_per_guess, iod_to_io_set_with_offset(offset : Int32) iod_to_io_set_with_offset, iod_to_io_set_with_offset_time_cols(time_cols : Int32, offset : Int32) iod_to_io_set_with_offset_time_cols, iod_uncertainty(iod_guessed) iod_uncertainty, iod_uncertainty_per_guess(iod_guessed) : Array(Float64) iod_uncertainty_per_guess, prefix_raw_char : String prefix_raw_char, prefix_raw_char=(prefix_raw_char : String) prefix_raw_char=, prefix_raw_qty : Int32 prefix_raw_qty, prefix_raw_qty=(prefix_raw_qty : Int32) prefix_raw_qty=, raw : String raw, raw=(raw : String) raw=, save_iod(to_file_path : String) save_iod, save_raw(to_file_path : String) save_raw

Constructor methods inherited from class Ai4cr::Utils::IoData::Abstract

new(file_path : String, file_content_type : FileType, prefix_raw_qty : Int32 = 0, prefix_raw_char : String = " ", default_to_bit_size : Int32 = 0) new

Class methods inherited from class Ai4cr::Utils::IoData::Abstract

convert_iod_to_raw(iod, default_to_bit_size = 0) : String convert_iod_to_raw, convert_raw_to_iod(raw, default_to_bit_size = 0) : Array(Array(Float64)) convert_raw_to_iod

Class Method Detail

def self.char_to_charaf(char) #

[View source]
def self.charaf_to_char(charaf) #

[View source]
def self.convert_iod_to_raw(iod, chars_at_a_time = CHARS_AT_A_TIME_DEFAULT) : String #

[View source]
def self.convert_raw_to_iod(raw, chars_at_a_time = CHARS_AT_A_TIME_DEFAULT) : Array(Array(Float64)) #

[View source]
def self.resize_chars_at_a_time(raw, chars_at_a_time) #

[View source]