亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? ratepath.java

?? MPI for java for Distributed Programming
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/***************************************************************************                                                                         **             Java Grande Forum Benchmark Suite - MPJ Version 1.0         **                                                                         **                            produced by                                  **                                                                         **                  Java Grande Benchmarking Project                       **                                                                         **                                at                                       **                                                                         **                Edinburgh Parallel Computing Centre                      **                                                                         **                email: epcc-javagrande@epcc.ed.ac.uk                     **                                                                         **      Original version of this code by Hon Yau (hwyau@epcc.ed.ac.uk)     **                                                                         **      This version copyright (c) The University of Edinburgh, 2001.      **                         All rights reserved.                            **                                                                         ***************************************************************************/package jgf_mpj_benchmarks.section3.montecarlo;//package montecarlo;import java.io.*;import java.util.*;/**  * Class for recording the values in the time-dependent path of a security.  *  * <p>To Do list:  * <ol>  *   <li><i>None!</i>  * </ol>  *  * @author H W Yau  * @version $Revision: 1.1 $ $Date: 2005/04/29 17:43:42 $  */public class RatePath extends PathId {  //------------------------------------------------------------------------  // Class variables.  //------------------------------------------------------------------------  /**    * Class variable, for setting whether to print debug messages.    */  public static boolean DEBUG=true;  /**    * The prompt to write before any debug messages.    */  protected static String prompt="RatePath> ";  /**    * Class variable for determining which field in the stock data should be    * used.  This is currently set to point to the 'closing price'.    */  public static int DATUMFIELD=4;  /**    * Class variable to represent the minimal date, whence the stock prices    * appear. Used to trap any potential problems with the data.    */  public static final int MINIMUMDATE = 19000101;  /**    * Class variable for defining what is meant by a small number, small enough    * to cause an arithmetic overflow when dividing.  According to the    * Java Nutshell book, the actual range is +/-4.9406564841246544E-324    */  public static final double EPSILON= 10.0 * Double.MIN_VALUE;  //------------------------------------------------------------------------  // Instance variables.  //------------------------------------------------------------------------  /**    * An instance variable, for storing the rate's path values itself.    */  private double[] pathValue;  /**    * An instance variable, for storing the corresponding date of the datum,    * in 'YYYYMMDD' format.    */  private int[] pathDate;  /**    * The number of accepted values in the rate path.    */  private int nAcceptedPathValue=0;  //------------------------------------------------------------------------  // Constructors.  //------------------------------------------------------------------------  /**    * Constructor, where the user specifies the filename in from which the     * data should be read.    *    * @param String filename    * @exception DemoException thrown if there is a problem reading in    *                          the data file.    */  public RatePath(String filename) throws DemoException {    set_prompt(prompt);    set_DEBUG(DEBUG);    readRatesFile(null,filename);  }  /**    * Constructor, where the user specifies the directory and filename in    * from which the data should be read.    *    * @param String dirName    * @param String filename    * @exception DemoException thrown if there is a problem reading in    *                          the data file.    */  public RatePath(String dirName, String filename) throws DemoException {    set_prompt(prompt);    set_DEBUG(DEBUG);    readRatesFile(dirName,filename);  }  /**    * Constructor, for when the user specifies simply an array of values    * for the path.  User must also include information for specifying    * the other characteristics of the path.    *    * @param pathValue the array containing the values for the path.    * @param name the name to attach to the path.    * @param startDate date from which the path is supposed to start, in    *        'YYYYMMDD' format.    * @param startDate date from which the path is supposed to end, in    *        'YYYYMMDD' format.    * @param dTime the time interval between successive path values, in    *        fractions of a year.    */  public RatePath(double[] pathValue, String name, int startDate, int endDate, double dTime) {    set_name(name);    set_startDate(startDate);    set_endDate(endDate);    set_dTime(dTime);    set_prompt(prompt);    set_DEBUG(DEBUG);    this.pathValue = pathValue;    this.nAcceptedPathValue = pathValue.length;  }  /**    * Constructor, for use by the Monte Carlo generator, when it wishes    * to represent its findings as a RatePath object.    *    * @param mc the Monte Carlo generator object, whose data are to    *           be copied over.    * @exception DemoException thrown if there is an attempt to access    *            an undefined variable.    */  public RatePath(MonteCarloPath mc) throws DemoException {    //    // Fields pertaining to the parent PathId object:    set_name(mc.get_name());    set_startDate(mc.get_startDate());    set_endDate(mc.get_endDate());    set_dTime(mc.get_dTime());    //    // Fields pertaining to RatePath object itself.    pathValue=mc.get_pathValue();    nAcceptedPathValue=mc.get_nTimeSteps();    //    // Note that currently the pathDate is neither declared, defined,    // nor used in the MonteCarloPath object.    pathDate=new int[nAcceptedPathValue];  }  /**    * Constructor, for when there is no actual pathValue with which to    * initialise.    *    * @param pathValueLegth the length of the array containing the values    *        for the path.    * @param name the name to attach to the path.    * @param startDate date from which the path is supposed to start, in    *        'YYYYMMDD' format.    * @param startDate date from which the path is supposed to end, in    *        'YYYYMMDD' format.    * @param dTime the time interval between successive path values, in    *        fractions of a year.    */  public RatePath(int pathValueLength, String name, int startDate, int endDate, double dTime) {    set_name(name);    set_startDate(startDate);    set_endDate(endDate);    set_dTime(dTime);    set_prompt(prompt);    set_DEBUG(DEBUG);    this.pathValue = new double[pathValueLength];    this.nAcceptedPathValue = pathValue.length;  }  //------------------------------------------------------------------------  // Methods.  //------------------------------------------------------------------------  /**    * Routine to update this rate path with the values from another rate    * path, via its pathValue array.    *    * @param operandPath the path value array to use for the update.    * @exception DemoException thrown if there is a mismatch between the    *            lengths of the operand and target arrays.    */  public void inc_pathValue(double[] operandPath) throws DemoException {    if( pathValue.length != operandPath.length )      throw new DemoException("The path to update has a different size to the path to update with!");    for(int i=0; i<pathValue.length; i++ )      pathValue[i] += operandPath[i];  }  /**    * Routine to scale this rate path by a constant.    *    * @param scale the constant with which to multiply to all the path    *        values.    * @exception DemoException thrown if there is a mismatch between the    *            lengths of the operand and target arrays.    */  public void inc_pathValue(double scale) throws DemoException {    if( pathValue==null )      throw new DemoException("Variable pathValue is undefined!");    for(int i=0; i<pathValue.length; i++ )      pathValue[i] *= scale;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久人人97超碰com| 91高清视频免费看| 日精品一区二区| 一区二区三区四区蜜桃| 亚洲色欲色欲www在线观看| 久久久精品tv| 国产精品天美传媒沈樵| 国产精品三级电影| 国产欧美综合色| 中文字幕亚洲欧美在线不卡| 亚洲欧洲www| 亚洲欧美另类小说视频| 一区二区免费在线| 亚洲国产精品久久艾草纯爱| 亚洲无人区一区| 九九久久精品视频| 国产精品1区2区| 99精品1区2区| 欧美撒尿777hd撒尿| 欧美一区二区三区视频在线| 久久久久久亚洲综合影院红桃 | 亚洲一区免费视频| 亚洲午夜电影网| 麻豆精品一区二区综合av| 精品在线一区二区| av亚洲精华国产精华| 欧美色男人天堂| 久久理论电影网| 亚洲天堂网中文字| 日韩经典一区二区| 成人国产精品免费观看动漫| 白白色亚洲国产精品| 欧美日韩激情一区二区三区| 精品日韩欧美在线| 亚洲美女视频一区| 黄色成人免费在线| 一本色道久久综合狠狠躁的推荐| 69成人精品免费视频| 国产精品网曝门| 奇米亚洲午夜久久精品| 91视频在线观看免费| 欧美成人免费网站| 亚洲图片欧美色图| 波多野结衣在线一区| 在线不卡一区二区| 亚洲欧洲日本在线| 久久精品国产99国产| 91激情五月电影| 中文字幕精品三区| 国内精品免费**视频| 欧美日韩黄色影视| 亚洲免费资源在线播放| 丁香另类激情小说| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 日本一区二区电影| 免费观看一级特黄欧美大片| 色综合久久精品| 欧美激情一区二区三区不卡| 久久成人久久爱| 777奇米成人网| 亚洲精品中文字幕在线观看| 国产精品99久| 久久这里只有精品首页| 久久www免费人成看片高清| 欧美伦理电影网| 亚洲夂夂婷婷色拍ww47| 成人美女在线视频| 国产午夜精品一区二区三区四区| 日韩高清中文字幕一区| 在线播放国产精品二区一二区四区 | 成人综合在线观看| 日韩精品一区二区三区视频播放 | 国产成人高清视频| 日韩美一区二区三区| 日韩av在线播放中文字幕| 欧美日韩精品欧美日韩精品| 亚洲一区在线观看网站| 欧美丝袜第三区| 亚洲成人免费影院| 欧美日韩国产综合视频在线观看| 亚洲成va人在线观看| 欧美一区二区三区视频免费 | 在线精品视频免费播放| 亚洲精品日韩专区silk| 色婷婷综合激情| 亚洲在线中文字幕| 666欧美在线视频| 奇米色一区二区| 久久久欧美精品sm网站| 成人av片在线观看| 亚洲精品日日夜夜| 5月丁香婷婷综合| 国产真实精品久久二三区| xf在线a精品一区二区视频网站| 狠狠色狠狠色综合系列| 国产精品免费视频一区| 色综合久久66| 久久av资源站| 国产精品国产三级国产普通话三级 | 一区二区三区在线视频免费观看| 欧洲精品在线观看| 欧美96一区二区免费视频| 精品欧美一区二区久久 | 欧美日韩一区久久| 精品一区二区久久| 国产精品无圣光一区二区| 91视频www| 麻豆成人综合网| 国产精品久久影院| 欧美少妇性性性| 国产高清精品网站| 亚洲一区二区三区四区在线观看| 欧美电影精品一区二区| www.日本不卡| 一区二区三区在线观看视频| 91麻豆精品国产自产在线观看一区| 国产伦精一区二区三区| 亚洲一区二区在线免费观看视频| 日韩免费看网站| 在线观看www91| 盗摄精品av一区二区三区| 偷拍亚洲欧洲综合| 日韩一区有码在线| 欧美电影影音先锋| 色综合久久天天综合网| 国内精品久久久久影院色| 亚洲高清久久久| 中文字幕一区二区三区乱码在线| 日韩欧美成人激情| 欧美日韩一区国产| 97国产精品videossex| 国产精品资源在线看| 人人爽香蕉精品| 亚洲与欧洲av电影| 亚洲三级在线免费| 中文一区一区三区高中清不卡| 91精品久久久久久久99蜜桃| 91官网在线免费观看| 成人精品一区二区三区中文字幕| 六月丁香婷婷久久| 五月婷婷另类国产| 亚洲国产精品久久艾草纯爱| 亚洲人午夜精品天堂一二香蕉| 中文字幕第一区第二区| 久久久www免费人成精品| 日韩精品一区二区三区swag| 这里只有精品电影| 在线不卡的av| 欧美一区二区三区影视| 欧美体内she精视频| 欧美色视频一区| 9191国产精品| 制服丝袜成人动漫| 日韩三级伦理片妻子的秘密按摩| 欧美精品在线一区二区| 在线播放视频一区| 日韩视频不卡中文| 久久久噜噜噜久噜久久综合| 久久嫩草精品久久久精品| 久久久久久久久久电影| 国产精品理论片| 亚洲码国产岛国毛片在线| 亚洲免费观看高清| 亚洲一区二区三区免费视频| 亚洲超碰精品一区二区| 蜜桃av一区二区| 国产福利一区二区三区视频在线 | 在线播放91灌醉迷j高跟美女 | 日韩一区日韩二区| 一区二区三区日韩欧美精品 | 波多野结衣精品在线| 91亚洲精品久久久蜜桃网站| 色吊一区二区三区| 欧美日韩成人在线一区| 欧美一区二区三级| 久久久久高清精品| 亚洲欧美一区二区不卡| 午夜久久久影院| 国内精品不卡在线| a级高清视频欧美日韩| 欧美中文字幕一区二区三区亚洲| 欧美日本免费一区二区三区| 欧美刺激脚交jootjob| 久久综合色综合88| 亚洲麻豆国产自偷在线| 久久草av在线| 91麻豆成人久久精品二区三区| 7777精品伊人久久久大香线蕉最新版 | 91麻豆国产福利精品| 6080午夜不卡| 成人欧美一区二区三区1314| 人人狠狠综合久久亚洲| 成人福利视频网站| 6080国产精品一区二区| 中文字幕亚洲精品在线观看| 日本不卡一二三| 日本精品视频一区二区| 久久久噜噜噜久噜久久综合| 亚洲成精国产精品女| 99久久精品久久久久久清纯|