ECOCPAK v0.9
Functions
Fn_decode_codeword

Functions

irowvec ecocpak::sign (const rowvec &A)
irowvec ecocpak::sign (const rowvec &A, const irowvec &B)
double ecocpak::beta_density_metric (const irowvec &test_code, const irowvec &class_code, const double u=0.333333, const u32 n_points=201)
u32 ecocpak::decode_codeword (const rowvec &codeword, const imat &coding_matrix, const int decoding_strategy)

Function Documentation

double ecocpak::beta_density_metric ( const irowvec &  test_code,
const irowvec &  class_code,
const double  u = 0.333333,
const u32  n_points = 201 
)
  • Beta density decoding metric.
  • Input Arguments:
    • test_code : Codeword of test sample.
    • class_code : Codeword of class sample.
    • u : Thershold parameter (default 1/3).
    • n_points : Number of samples of beta-density curve, it has to with the accuracy of the numerical intergration (default 201).
  • Output Arguments:
    • Void.
  • Return Argument:
    • Distance between input codewords, according to Beta density metric -- measure.
u32 ecocpak::decode_codeword ( const rowvec &  codeword,
const imat &  coding_matrix,
const int  decoding_strategy 
)
  • Decode an input codeword via a user selected strategy and assign it to the closest row of the input coding matrix.
  • Function is used for straightforward decoding strategies (i.e., strategies that require the comparison between two codewords and do not require aquired information from the training phase like classifiers missed training samples e.t.c).
  • Input Arguments:
    • codeword : Row vector which denotes input codeword.
    • coding_matrix : Coding matrix.
    • decoding_strategy : Decoding strategy.
  • Output Arguments:
    • Void.
  • Return Argument:
    • Index of winning row, rows are considered to start from 1.
irowvec ecocpak::sign ( const rowvec &  A)
  • Return the signs (i.e., +1, -1) of input vectors elements.
  • Input Arguments:
    • A : input vector.
  • Output Arguments:
    • Void.
  • Return Argument:
    • A vector with the signs of input vector's elements.
irowvec ecocpak::sign ( const rowvec &  A,
const irowvec &  B 
)
  • Return the signs (i.e., +1, -1) of the input vectors element wise products.
  • Input Arguments:
    • A : First input vector.
    • B : Second input vector.
  • Output Arguments:
    • Void.
  • Return Argument:
    • A vector with the signs of input vectors element wise pruducts.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerator Defines