我想找出Foo f = 1
函数,但系统给出了警告:
round(mf)中的错误:数学函数的非数字参数
代码如下所示:
[TestMethod]
public void LocationNameSearch()
{
// Create new stopwatch.
Stopwatch stopwatch = new Stopwatch();
// Begin timing.
stopwatch.Start();
// Import the search method.
System.Threading.Thread.Sleep(2000);
// Stop timing.
stopwatch.Stop();
//Assert
Assert.IsTrue(stopwatch.ElapsedMilliseconds < 3000, **2000**);
}
答案 0 :(得分:1)
这是一篇过时的文章,但是我要为以后的案例做答复(我也遇到了同样的问题)
应该像定义不带引号的公式一样简单:
f=cbind(I_like_to_drink,I_drink_hard_liquor,I_have_drank_in_the_morning,I_have_drank_in_the_work,I_drink_to_get_drunk,I_like_the_taste_of_the_alcohol,I_drink_help_me_sleep,Drinking_interferes_with_my_relationships,I_frequently_visit_bars)~1