Window

BaseWindow

class logio.dynamic_time_warping.BaseWindow[source]

Base class on which the desired window constraint is built upon. The warping window intuitively controls the amount of distortion allowed when comparing a pair of well logs.

Generally they are two types of wapring windows: 1. Sakoechiba’s Window implemented in SakoechibaWindow class. 2. Itakura’s Window implemented in ItakuraWindow class.

plot():

Visualize window (constraint)..

__init__()[source]
plot()[source]

Visualize window (constraint).

NoWindow

class logio.dynamic_time_warping.NoWindow(len_x, len_y)[source]

No window class.

len_x

Length of query log.

Type

int

len_y

Length of reference log.

Type

int

_gen_window(len_x, len_y):

Generates the window constraint matrix.

__init__(len_x, len_y)[source]

Constructs all the necessary attributes for the NoWindow object.

Parameters
  • len_x (int) – Length of query log.

  • len_y (int) – Length of reference log.

label = 'no window'
plot()

Visualize window (constraint).

SakoechibaWindow

class logio.dynamic_time_warping.SakoechibaWindow(len_x, len_y, size)[source]

Sakoechiba window warping constraint.

len_x

Length of query log.

Type

int

len_y

Length of reference log.

Type

int

size

Size of window width.

Type

int

_gen_window(len_x, len_y, size):

Generates the window constraint matrix.

__init__(len_x, len_y, size)[source]

Constructs all the necessary attributes for the SakoechibaWindow object.

Parameters
  • len_x (int) – Length of query log.

  • len_y (int) – Length of reference log.

  • size (int) – Size of window width.

label = 'sakoechiba window'
plot()

Visualize window (constraint).

ItakuraWindow

class logio.dynamic_time_warping.ItakuraWindow(len_x, len_y)[source]

A class for the Itakura window warping constraint.

len_x

Length of query log.

Type

int

len_y

Length of reference log.

Type

int

_gen_window(len_x, len_y):

Generates the window constraint matrix.

__init__(len_x, len_y)[source]

Constructs all the necessary attributes for the ItakuraWindow object.

Parameters
  • len_x (int) – Length of query log.

  • len_y (int) – Length of reference log.

label = 'itakura window'
plot()

Visualize window (constraint).

UserWindow

class logio.dynamic_time_warping.UserWindow(len_x, len_y, win_func, *args, **kwargs)[source]

A class for user defined window constraints.

Option for a user defined window is implemented in UserWindow class. The user window defined must be a function that returns a boolean.

len_x

Length of query log.

Type

int

len_y

Length of reference log.

Type

int

win_func

Any function which returns bool.

Type

callable

\*args, \*\*kwargs

Arguments for win_func

_gen_window(len_x, len_y, win_func, \*args, \*\*kwargs):

Generates the window constraint matrix.

__init__(len_x, len_y, win_func, *args, **kwargs)[source]

Constructs all the necessary attributes for the UserWindow object.

Parameters
  • len_x (int) – Length of query log.

  • len_y (int) – Length of reference log.

  • win_func (callable) – Any function which returns bool.

  • *args – Arguments for win_func

  • **kwargs – Arguments for win_func

label = 'user defined window'
plot()

Visualize window (constraint).