haskell - 为什么数据构造函数不在此范围内
问题描述
我正在尝试按照此处提供的方式进行学生 T 检验:
import Data.Vector as V
import Statistics.Test.StudentT
sampleA = V.fromList [1.0,2.0,3.0,4.0,1.0,2.0,3.0,4]
sampleB = V.fromList [2.0,4.0,5.0,5.0,3.0,4.0,5.0,6]
main = print $ StudentT sampleA sampleB SamplesDiffer
但是,我收到以下错误:
rnunttest.hs:8:16: error:
Data constructor not in scope:
StudentT :: Vector Double -> Vector Double -> PositionTest -> a0
问题出在哪里,如何解决?谢谢你的帮助。
解决方案
我认为您必须将构造函数更改为studentTTest
main = print $ studentTTest sampleA sampleB SamplesDiffer
推荐阅读
- python - 通过字典解析字符串
- php - Laravel LengthAwarePaginator where 查询
- haskell - 将负责从各种函子中提取值的代码放在哪里
- python - 用于清理文档的深度学习模型
- c# - 如果我设置数据上下文,则可见性属性不起作用,反之亦然
- javascript - 在模态中从选择中设置 PHP 变量
- php - Sonata Admin - 更改过滤器值(关系字段)
- eclipse - 如何在 Eclipse Luna 中将现有文件的编码转换为 UTF-8
- python - 如果我必须添加一个以 3 为间隔的值的系列,python 中的代码将是什么
- javascript - Visual Studio 和 chrome 的 let 和 const 问题