你们有没有想过如何解决在血压曲线中发现人工制品/异常值的问题?我的目标是编写一个程序,找出每个人工制品的起点和终点.以下是不同人工制品的一些例子,绿色区域是正确的血压曲线,红色区域是人工制品,需要检测:
我的第一个想法是从整个曲线计算平均值,并在曲线的短间隔内计算许多均值,然后找出它的不同之处.但血压变化很大,我不认为这可行,因为它会发现太多不存在的"人工制品".
感谢您的输入!
编辑:以下是两个示例人工制品的一些数据:
我想绘制一个data.frame,我的问题是,出现以下错误:
Error in plot.window(...) need finite 'xlim' values
In addition: Warning messages:
1: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
2: In xy.coords(x, y, xlabel, ylabel, log) : NAs introduced by coercion
3: In min(x) : no non-missing arguments to min; returning Inf
4: In max(x) : no non-missing arguments to max; returning -Inf
5: In min(x) : no non-missing arguments to min; returning Inf
6: In max(x) : no non-missing arguments to max; returning -Inf …Run Code Online (Sandbox Code Playgroud) 我的javascript document.getElementById函数有问题.问题是,除Internet Explorer之外的每个浏览器都会收到document.getElementById为null的错误.
例如Firefox:
TypeError:document.getElementById(...)为null
getElementById-Function出现在按钮声明之后,因此它不应该是一个问题,该函数不知道ID元素是什么.
这是带有相关代码的脚本的摘录:
<html>
<head>
<title>Timeline</title>
<meta charset="utf-8">
</head>
<body>
<form method="post" id="myform" onsubmit="window.location.reload();">
<input type="hidden" id="client_timestamp" name="client_timestamp" />
<button name= "subm_myform" type="submit" >Send My Time</button>
</form>
<script type="text/javascript">
// ------- where the error occurs ----------------
document.getElementById('subm_myform').style.visibility='hidden';
var mySync = setTimeout( function () {document.getElementById('subm_myform').click()} ,60000);
</script>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
谢谢!