pk4adi.pk¶
@File : pk.py @Contact : Jiang Feng(silencejiang@zju.edu.cn) @License : (C)Copyright 2004-2020, Zhejiang University
Functions¶
|
Compute the pk value to Measure the Performance of Anesthetic Depth Indicators. |
|
Pretty display of a pk calculation result. |
Module Contents¶
- calculate_pk(x_in, y_in, auto_print=True)[源代码]¶
- Compute the pk value to Measure the Performance of Anesthetic Depth Indicators.
print_pk() will be called before returning ans by default.
- 参数:
x_in (a list or a pandas series (pandas.Series()).) – Indicator.
y_in (a list or a pandas series (pandas.Series()).) – State.
auto_print (bool.) – Whether to print the ans before returning it or not.
- 返回:
ans – A dict containing all the matrix and variables involved. Use the script ‘print(ans.keys())’ to get the details. The most important variables have already been printed.
- 返回类型:
a dict.
引用
To be added.
备注
To be added.
- print_pk(result, floatfmt='.3f', tablefmt='simple')[源代码]¶
Pretty display of a pk calculation result.
- 参数:
result (a dict.) – Must be the return value of function calculate_pk().
floatfmt (string.) – Decimal number formatting.
tablefmt (string.) – Table format (e.g. ‘simple’, ‘plain’, ‘html’, ‘latex’, ‘grid’, ‘rst’). For a full list of available formats, please refer to https://pypi.org/project/tabulate/
- 返回类型:
Nothing will be returned.
备注
To be added.