kappa_sdk.DocumentVector#
- class kappa_sdk.DocumentVector(dates, values, name, measure, is_derivative, is_model, is_by_step=False, vector_id=None, first_x=None)[source]#
KW document vector object.
Container of the document data that, in addition to the
Vector, stores the name and the dimension of the data.Note
Should not be instantiated directly.
Attributes
KW Measure associated with this
DocumentVector.Name of this
DocumentVector.DocumentVector.datesList of X (date) values in this
Vector.DocumentVector.elapsed_timesList of X (date) values as elapsed time (in hours), counted from the first date in the
Vector.DocumentVector.first_xGets the first_x/ start time of the elapsed times of this
VectorDocumentVector.idGets the
Vectorid.A value indicating whether this
DocumentVectoris a step data or not.A value indicating whether this
DocumentVectoris a derivative data or not.A value indicating whether this
DocumentVectoris a model data or not.DocumentVector.valuesList of Y (data) values in this
Vector.Methods
DocumentVector.set_elapsed_times(elapsed_times)Sets the elapsed times.
DocumentVector.set_first_x(first_x)- Parameters:
dates (List[datetime])
values (List[float])
name (str)
measure (str)
is_derivative (bool)
is_model (bool)
is_by_step (bool)
vector_id (str | None)
first_x (datetime | None)
- __init__(dates, values, name, measure, is_derivative, is_model, is_by_step=False, vector_id=None, first_x=None)[source]#
- Parameters:
dates (List[datetime])
values (List[float])
name (str)
measure (str)
is_derivative (bool)
is_model (bool)
is_by_step (bool)
vector_id (str | None)
first_x (datetime | None)
- property data_name: str#
Name of this
DocumentVector.
- property data_measure: str#
KW Measure associated with this
DocumentVector.
- property is_derivative: bool#
A value indicating whether this
DocumentVectoris a derivative data or not.
- property is_model: bool#
A value indicating whether this
DocumentVectoris a model data or not.
- property is_by_step: bool#
A value indicating whether this
DocumentVectoris a step data or not.