FlowChange.NullFlowChange#
FlowChange.NullFlowChange.py
- class CsProxy(slope, intercept, a_curve=None, x_curve=None)#
Bases:
object
A proxy class for Cs similarity computation.
- slope#
The slope of the linear regression line.
- Type:
float
- intercept#
The intercept of the linear regression line.
- Type:
float
- mapped_info#
The mapping information, computed on demand.
- Type:
MappingInfo or None
Initializes the CsProxy with given slope and intercept.
- Parameters:
- compute_whole_similarity()#
Computes the whole similarity.
- Returns:
The whole similarity value.
- Return type:
float
- get_mapped_info()#
Gets the mapping information, computing it if necessary.
- Returns:
The mapping information.
- Return type:
- class NullFlowChange(a_curve, a_curve2, x_curve)#
Bases:
object
A class representing a null flow change.
Initializes the NullFlowChange with given curves. :param a_curve: The A-curve. :type a_curve: Curve :param a_curve2: The second A-curve. :type a_curve2: Curve :param x_curve: The X-curve. :type x_curve: Curve
- get_similarity()#
Gets the similarity value.
- Returns:
The similarity value.
- Return type:
float
- get_real_flow_changes()#
Gets the real flow changes.
- Returns:
Indicates no real flow changes.
- Return type:
None, None
- has_special()#
Indicates whether there are special flow changes.
- Returns:
Always returns False.
- Return type:
bool
- remove_irregular_points()#
Removes irregular points.
- Returns:
Empty arrays and a full slice.
- Return type:
array, array, slice