@Override
	public DoubleStream getRealizationsStream() {
		if(isDeterministic()) {
			return DoubleStream.generate(new DoubleSupplier() {
				@Override
				public double getAsDouble() {
					return valueIfNonStochastic;
				}
			});
		}
		else {
			return IntStream.range(0,size()).mapToDouble(realizations).parallel();
		}
	}
@ Override public DoubleStream getRealizationsStream ( ) { if ( isDeterministic ( ) ) { return DoubleStream . generate ( new DoubleSupplier ( ) { @ Override public double getAsDouble ( ) { return valueIfNonStochastic ; } } ) ; } else { return IntStream . range ( 0 , size ( ) ) . mapToDouble ( realizations ) . parallel ( ) ; } }
/* (non-Javadoc)
@see net.finmath.stochastic.RandomVariable#getRealizationsStream()