//The expectedValue = intialValue*exp(drift*dt)-----can be obtained by integrating----->dx/x= drift*dt
System.out.println("Expected value = "+process.expectation(process.time(date18.clone()), handleToStockQuote.currentLink().value(), 0.01));
//Calulating the exact value of the stock quote after time = 18th day from today with the current value of the stock as specified from the quote
//The exact value = intialValue*exp(drift*dt)*exp(volatility*sqrt(dt))-----can be obtained by integrating----->dx/x= drift*dt+volatility*sqrt(dt)
System.out.println("Exact value = "+process.evolve(process.time(date18.clone()), 6.7, .001, new NormalDistribution().op(Math.random())));
//Calculating the drift of the stochastic process after time = 18th day from today with value of the stock as specified from the quote
//The drift = (riskFreeForwardRate - dividendForwardRate) - (Variance/2)
final Array drift = process.drift(process.time(date18.clone()), new Array(1).fill(5.6));
System.out.println("The drift of the process after time = 18th day from today with value of the stock as specified from the quote");