java.lang.Object
tech.nmfin.portfoliooptimization.lai2010.ceta.npeb.resampler.GroupResamplerFactory
All Implemented Interfaces:
Seedable, ReturnsResamplerFactory

public class GroupResamplerFactory extends Object implements ReturnsResamplerFactory, Seedable
Creates re-samplers that do re-sampling for the whole group of stocks together.
  • Constructor Details

    • GroupResamplerFactory

      public GroupResamplerFactory()
    • GroupResamplerFactory

      public GroupResamplerFactory(long seed)
  • Method Details

    • newResampler

      public MultivariateResampler newResampler(Matrix returns)
      Description copied from interface: ReturnsResamplerFactory
      Constructs a new instance of a re-sampling mechanism.
      Specified by:
      newResampler in interface ReturnsResamplerFactory
      Parameters:
      returns - multivariate samples or multivariate time series
      Returns:
      a new instance of a re-sampler
    • seed

      public void seed(long... seeds)
      Description copied from interface: Seedable
      Seed the random number/vector/scenario generator to produce repeatable experiments.
      Specified by:
      seed in interface Seedable
      Parameters:
      seeds - the seeds