本文整理汇总了C++中Transformable::find方法的典型用法代码示例。如果您正苦于以下问题:C++ Transformable::find方法的具体用法?C++ Transformable::find怎么用?C++ Transformable::find使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transformable
的用法示例。
在下文中一共展示了Transformable::find方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: pow
void TranLog10::reverse(Transformable &data)
{
Transformable::iterator data_iter, data_end = data.end();
for (set<string>::const_iterator b=items.begin(), e=items.end(); b!=e; ++b)
{
data_iter = data.find(*b);
if (data_iter != data_end)
{
(*data_iter).second = pow(10.0, (*data_iter).second);
}
}
}
示例2: reverse
void TranScale::reverse(Transformable &data)
{
Transformable::iterator data_iter, data_end = data.end();
for (map<string,double>::const_iterator b=items.begin(), e=items.end();
b!=e; ++b) {
data_iter = data.find(b->first);
if (data_iter != data_end)
{
(*data_iter).second /= b->second;
}
}
}
示例3: forward
///////////////// TranOffset Methods /////////////////
void TranOffset::forward(Transformable &data)
{
Transformable::iterator data_iter, data_end = data.end();
for (map<string,double>::const_iterator b=items.begin(), e=items.end();
b!=e; ++b) {
data_iter = data.find(b->first);
if (data_iter != data_end)
{
(*data_iter).second += (*b).second;
}
}
}
示例4:
void TranNormalize::d2_to_d1(Transformable &del_data, Transformable &data)
{
Transformable::iterator del_data_iter, del_data_end = del_data.end();
for (map<string, NormData>::const_iterator b = items.begin(), e = items.end();
b != e; ++b) {
del_data_iter = del_data.find(b->first);
if (del_data_iter != del_data_end)
{
(*del_data_iter).second *= b->second.scale;
}
}
reverse(data);
}
示例5: log
void TranLog10::d2_to_d1(Transformable &del_data, Transformable &data)
{
reverse(data);
Transformable::iterator del_data_iter, del_data_end = del_data.end();
for (set<string>::const_iterator b = items.begin(), e = items.end(); b != e; ++b)
{
del_data_iter = del_data.find(*b);
if (del_data_iter != del_data_end)
{
double d2 = data.get_rec(*b);
double factor = 1.0 / (d2 * log(10.0));
(*del_data_iter).second *= factor;
}
}
reverse(data);
}