Package ai.platon.pulsar.dom.features
Class Level1FeatureCalculator
-
- All Implemented Interfaces:
-
ai.platon.pulsar.dom.features.FeatureCalculator
public final class Level1FeatureCalculator extends AbstractFeatureCalculator
The level 1 feature calculator calculate for the minimal features.
Uses a document-level FeatureBlock to store all node feature vectors in a single contiguous DoubleArray with zero per-node heap allocations during calculation. Only FeatureBlock + DoubleArray are allocated — no intermediate vector objects.
-
-
Field Summary
Fields Modifier and Type Field Description private final FeatureBlockfeatureBlock
-
Constructor Summary
Constructors Constructor Description Level1FeatureCalculator()
-
Method Summary
Modifier and Type Method Description final FeatureBlockgetFeatureBlock()The FeatureBlock for the current document being calculated. Unitcalculate(Document document)Unitdispose()-
-
Method Detail
-
getFeatureBlock
final FeatureBlock getFeatureBlock()
The FeatureBlock for the current document being calculated. Set during calculate and accessible after calculation completes.
-
-
-
-