// Build topology
TridentTopology toppology = new TridentTopology();
TridentState scaledStreamStatistics = toppology
// emit tuples with random features
.newStream("originalStream", new RandomFeaturesSpout(false, 2, 3.0))
// Transform trident tupl to instance
.each(new Fields("x0", "x1"), new InstanceCreator(false), new Fields("instance"))
// Update original stream statistics