Assembla home | Assembla project page
 

Changeset 192

Show
Ignore:
Timestamp:
05/27/08 04:14:16 (3 months ago)
Author:
snovik
Message:

New: some more MC classes (Path Generators)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/QLNet/QLNet/Math/Solver1d.cs

    r77 r192  
    2626    // it is an abstract class for solver evaluations 
    2727    // it should be an interface but to avoid optional derivate method, it is made as abstract class 
    28     public abstract class ISolver1d
     28    public abstract class ISolver1d : IValue
    2929        public abstract double value(double v); 
    3030        public virtual double derivative(double x) { return 0; } 
  • trunk/QLNet/QLNet/Math/Vector.cs

    r152 r192  
    7878 
    7979        public int size() { return this.Count; } 
     80        public bool empty() { return this.Count == 0; } 
    8081 
    8182        #region Vector algebra 
  • trunk/QLNet/QLNet/Math/randomnumbers/randomsequencegenerator.cs

    r178 r192  
    2626        int dimension(); 
    2727        Sample<List<double>> nextSequence(); 
     28        Sample<List<double>> lastSequence(); 
    2829    } 
    2930 
  • trunk/QLNet/QLNet/Methods/montecarlo/sample.cs

    r170 r192  
    2525    //! weighted sample 
    2626    /*! \ingroup mcarlo */ 
    27     public struct Sample<T>
     27    public struct Sample<T> : ICloneable
    2828        public Sample(T value_, double weight_) { 
    2929            value = value_; 
     
    3232        public T value; 
    3333        public double weight; 
     34 
     35        public object Clone() { return this.MemberwiseClone(); } 
    3436    } 
    3537} 
  • trunk/QLNet/QLNet/QLNet.csproj

    r178 r192  
    218218    <Compile Include="Methods\lattices\lattice1d.cs" /> 
    219219    <Compile Include="Methods\lattices\tree.cs" /> 
     220    <Compile Include="Methods\montecarlo\brownianbridge.cs" /> 
     221    <Compile Include="Methods\montecarlo\multipath.cs" /> 
     222    <Compile Include="Methods\montecarlo\multipathgenerator.cs" /> 
     223    <Compile Include="Methods\montecarlo\path.cs" /> 
     224    <Compile Include="Methods\montecarlo\pathgenerator.cs" /> 
    220225    <Compile Include="Methods\montecarlo\sample.cs" /> 
    221226    <Compile Include="Models\CalibrationHelper.cs" /> 
  • trunk/QLNet/QLNet/timegrid.cs

    r125 r192  
    113113 
    114114        public bool empty() { return times_.Count == 0; } 
     115        public int size() { return times_.Count; } 
    115116    } 
    116117}