sampleEnergy method

Future<List<num>> sampleEnergy({
  1. int sampleSize = 100,
})

Returns a list of energy values sampled from the entire search space.

Implementation

Future<List<num>> sampleEnergy({int sampleSize = 100}) async =>
    List<num>.generate(sampleSize, (_) => next());