Package com.independentsoft.calc.functions

# Class DayCountBasis

java.lang.Object
com.independentsoft.calc.functions.DayCountBasis

public final class DayCountBasis extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static boolean`
  `addMonths​(int year, int month, int day, int months, boolean endOfMonth, boolean date1904, OutDouble serial)`
  `static boolean`
  `coupDates​(double settlement, double maturity, int frequency, boolean date1904, OutDouble pcd, OutDouble ncd, OutInt couponsRemaining)`
  `static double`
  `coupPeriodDays​(double pcd, double ncd, int frequency, int basis)`
  `static double`
  `days360Nasd​(int y1, int m1, int d1, int y2, int m2, int d2)`
  `static double`
  `daysBetween​(double s1, double s2, int basis, boolean date1904)`
  `static CalcValue`
  `yearFrac​(double s1, double s2, int basis, boolean date1904, OutDouble result)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### yearFrac

    public static CalcValue yearFrac​(double s1, double s2, int basis, boolean date1904, OutDouble result)

  - ### days360Nasd

    public static double days360Nasd​(int y1, int m1, int d1, int y2, int m2, int d2)

  - ### coupDates

    public static boolean coupDates​(double settlement, double maturity, int frequency, boolean date1904, OutDouble pcd, OutDouble ncd, OutInt couponsRemaining)

  - ### addMonths

    public static boolean addMonths​(int year, int month, int day, int months, boolean endOfMonth, boolean date1904, OutDouble serial)

  - ### coupPeriodDays

    public static double coupPeriodDays​(double pcd, double ncd, int frequency, int basis)

  - ### daysBetween

    public static double daysBetween​(double s1, double s2, int basis, boolean date1904)