class Ai4cr::Utils::IoData::TextFileIodBits

Defined in:

ai4cr/utils/io_data/text_file_io_bits.cr

Constant Summary

BIT_32_INDEXES = (0..31).to_a

TODO Dig more into 'spec_bench/ai4cr/io_data/text_file_spec.cr' and adjust this file accordingly.

UTF_MAX_AS_FLOAT = Char::MAX_CODEPOINT.to_f

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.bit_index_size(default_to_bit_size = BIT_32_INDEXES.size) #

[View source]
def self.bits_to_char(bits, default_to_bit_size = BIT_32_INDEXES.size) #

[View source]
def self.bytes_to_chars(bytes, default_to_bit_size = BIT_32_INDEXES.size) #

[View source]
def self.char_to_bits(char, default_to_bit_size = BIT_32_INDEXES.size) #

[View source]
def self.convert_iod_to_raw(iod, default_to_bit_size = BIT_32_INDEXES.size) #

[View source]
def self.convert_raw_to_iod(raw, default_to_bit_size = BIT_32_INDEXES.size) #

[View source]