本文整理汇总了C#中DataRecord.getData方法的典型用法代码示例。如果您正苦于以下问题:C# DataRecord.getData方法的具体用法?C# DataRecord.getData怎么用?C# DataRecord.getData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataRecord
的用法示例。
在下文中一共展示了DataRecord.getData方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: run
protected override void run(DataRecord.DataRecord incoming)
{
// Sometimes the data trasmission is poor.
Types.Skeleton skel = incoming.getData("Skeleton");
if (skel._empty) return;
// Must add the avatar's skeleton before the player's.
mov.addAvatar(skel);
mov.addPlayer(skel);
// Calculate the total angular displacement.
mov.run();
data["ExerciseAdherence"] = mov.getFlail();
}
示例2: run
protected override void run(DataRecord.DataRecord incoming)
{
double VO2 = 14;
data["MET"] = VO2 / 3.5; // in mL kg-1 min-1
data["kCal/min"] = VO2*incoming.getData("Mass")*5.05;
}
示例3: run
/**
* Code to run on the newly acquried data. Each algorithm is
* run asychronously.
*
* This function should include pieces like the following
* to add values to the DataRecord.
* data["String Key"] = value;
*/
protected override void run(DataRecord.DataRecord incoming)
{
data["ExampleAlgo"] = incoming.getData("Blood Oxygenation") + 12.2;
}