public static ArrayOfDoublesSketch wrap ( final Memory mem , final long seed ) { final SerializerDeserializer . SketchType sketchType = SerializerDeserializer . getSketchType ( mem ) ; if ( sketchType == SerializerDeserializer . SketchType . ArrayOfDoublesQuickSelectSketch ) { return new DirectArrayOfDoublesQuickSelectSketchR ( mem , seed ) ; } return new DirectArrayOfDoublesCompactSketch ( mem , seed ) ; }
Wrap the given Memory and seed as a ArrayOfDoublesSketch