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");
//Calculating the diffusion of the process after time = 18th day from today with value of the stock as specified from the quote
//The diffusion = volatiltiy of the stochastic process
final Matrix diffusion = process.diffusion(process.time(date18.clone()), new Array(1).fill(5.6));
System.out.println("The diffusion of the process after time = 18th day from today with value of the stock as specified from the quote");
//Calulating the standard deviation of the process after time = 18th day from today with value of the stock as specified from the quote
//The standard deviation = volatility*sqrt(dt)
final Matrix stdDeviation = process.stdDeviation(process.time(date18.clone()), new Array(1).fill(5.6), 0.01);
System.out.println("The stdDeviation of the process after time = 18th day from today with value of the stock as specified from the quote");
//Calulating the expected value of the stock quote after time = 18th day from today with the current value of the stock as specified from the quote
//The expectedValue = intialValue*exp(drift*dt)-----can be obtained by integrating----->dx/x= drift*dt
final Array expectation = process.expectation(process.time(date18.clone()), new Array(1).fill(5.6), 0.01);
System.out.println("Expected value = "+expectation.first());
//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)
final Array evolve = process.evolve(process.time(date18.clone()), new Array(1).fill(6.7), .001, new Array(1).fill(new NormalDistribution().op(Math.random()) ));
System.out.println("Exact value = "+evolve.first());
//Calculating covariance of the process
final Matrix covariance = process.covariance(process.time(date18.clone()), new Array(1).fill(5.6), 0.01);
System.out.println("Covariance = "+covariance.get(0, 0));
clock.stopClock();
clock.log();
}