javascript - 如何获取数据以进行更多分析?
问题描述
我必须修改现有的 jsPsych 实验来总结不同条件下的反应时间。
我想我可以从编写一个在 jsPsych.init() 中调用的简单函数开始,我将其命名为 extractingData()。我在控制台中收到此消息:“未捕获的 TypeError:jsPsych.data.get 不是函数”
这是行:
var myData = jsPsych.data.get().filter({trial_type: 'poldrack-single-stim'}).filterCustom(function(x){return x.trial_num > 0});
在 jsPsych 官方文档中,他们提供了这个例子:
var data = jsPsych.data.get().filter({trial_type: 'image-keyboard-response'}).filterCustom(function(x){ return x.rt > 100; });
任何帮助将不胜感激。提前致谢。
解决方案
推荐阅读
- nginx - 如何自动为每个系统日志行添加自定义前缀?
- mysql - 如何使用SQL查找表中最近的N条连续记录
- python - Python函数和C函数之间的精度差异
- c - makefile 的问题,“make: Nothing to be done for 'all'” [C]
- python - 使用 np.isclose() 比较时间向量时出现内存错误
- .net - 更改属性网格集合显示
- ios - 使用不同的单元格创建 UITable
- c++ - Manjaro 上的安装和编译提升
- java - 如何从 Excel 文件中获取 @tag 到 Selenium java 中的 CucumberOptions
- windows - MSYS2:使命令不显示任何内容并且运行时间过长