小编Bor*_*rsi的帖子

R - 在血压曲线中找出异常值/假象的方法

你们有没有想过如何解决在血压曲线中发现人工制品/异常值的问题?我的目标是编写一个程序,找出每个人工制品的起点和终点.以下是不同人工制品的一些例子,绿色区域是正确的血压曲线,红色区域是人工制品,需要检测:

在此输入图像描述

在此输入图像描述

在此输入图像描述

这是全血压曲线的一个例子: 在此输入图像描述

我的第一个想法是从整个曲线计算平均值,并在曲线的短间隔内计算许多均值,然后找出它的不同之处.但血压变化很大,我不认为这可行,因为它会发现太多不存在的"人工制品".

感谢您的输入!

编辑:以下是两个示例人工制品的一些数据:

Artefact1

Artefact2

r drift outliers

6
推荐指数
1
解决办法
284
查看次数

plot.window(...)中的R错误需要有限的'xlim'值

我想绘制一个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)

plot r

2
推荐指数
1
解决办法
3万
查看次数

除了在Internet Explorer中,getElementById返回null

我的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)

谢谢!

html javascript

0
推荐指数
1
解决办法
1053
查看次数

标签 统计

r ×2

drift ×1

html ×1

javascript ×1

outliers ×1

plot ×1