<commit_before>/*
 * (c) Copyright <NAME>, Germany. All rights reserved. Contact: <EMAIL>.
 *
 * Created on 20.05.2005
 */
package net.finmath.marketdata.model.curves;

import java.io.Serializable;

import net.finmath.marketdata.model.AnalyticModelInterface;
import net.finmath.time.TimeDiscretizationInterface;

/**
 * A container for discount factors. The discount curve is based on the {@link net.finmath.marketdata.model.curves.Curve} class.
 * It thus features all interpolation and extrapolation methods and interpolation entities
 * as {@link net.finmath.marketdata.model.curves.Curve}.
 * In addition the discount curve has the property that getValue(0) = 1
 * and getValue(x) = 0 for all x < 0.
 * 
 * @author <NAME>
 */
public class DiscountCurve extends Curve implements Serializable, DiscountCurveInterface {

    private static final long serialVersionUID = -4126228588123963885L;

    private DiscountCurve(String name) {
    	super(name, InterpolationMethod.LINEAR, ExtrapolationMethod.CONSTANT, InterpolationEntity.LOG_OF_VALUE_PER_TIME);
    }
<commit_msg>Improved JavaDoc.<commit_after>/*
 * (c) Copyright <NAME>, Germany. All rights reserved. Contact: <EMAIL>.
 *
 * Created on 20.05.2005
 */
package net.finmath.marketdata.model.curves;

import java.io.Serializable;

import net.finmath.marketdata.model.AnalyticModelInterface;
import net.finmath.time.TimeDiscretizationInterface;

/**
 * A container for discount factors. The discount curve is based on the {@link net.finmath.marketdata.model.curves.Curve} class.
 * It thus features all interpolation and extrapolation methods and interpolation entities
 * as {@link net.finmath.marketdata.model.curves.Curve}.
 * In addition the discount curve has the property that getValue(0) = 1
 * and getValue(x) = 0 for all x < 0.
 * 
 * @author <NAME>
 */
public class DiscountCurve extends Curve implements Serializable, DiscountCurveInterface {

    private static final long serialVersionUID = -4126228588123963885L;

    /**
     * Create an empty discount curve using default interpolation and extrapolation methods.
     * 
     * @param name The name of this discount curve.
     */
    private DiscountCurve(String name) {
    	super(name, InterpolationMethod.LINEAR, ExtrapolationMethod.CONSTANT, InterpolationEntity.LOG_OF_VALUE_PER_TIME);
    }

    /**
     * Create a discount curve from given times and given discount factors using default interpolation and extrapolation methods.
     * 
     * @param name The name of this discount curve.
     * @param times Array of times as doubles.
     * @param givenDiscountFactors Array of corresponding discount factors.
     * @return A new discount factor object.
     */
{'fraction_non_alphanumeric': 0.08614927590048273, 'fraction_numerical': 0.023022651318232456, 'mean_word_length': 4.1022727272727275, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5218187', 'n_tokens_mistral': 803, 'n_tokens_neox': 753, 'n_words': 247}