MCPcopy Create free account
hub / github.com/alibaba/euler / GetBinaryFeatureValueNum

Method GetBinaryFeatureValueNum

euler/core/graph/edge.h:67–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65 }
66
67 virtual int32_t GetBinaryFeatureValueNum() const {
68 int32_t num = 1, pre = 0;
69 for (size_t i = 0; i < binary_features_idx_.size(); ++i) {
70 num = std::max(binary_features_idx_[i] - pre, num);
71 pre = binary_features_idx_[i];
72 }
73 return num;
74 }
75
76 // Get certain uint64 features
77 virtual void GetUint64Feature(

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected