Uses of Interface
microsim.alignment.outcome.AlignmentOutcomeClosure
-
Uses of AlignmentOutcomeClosure in microsim.alignment.outcome
Modifier and TypeMethodDescriptionvoid
ResamplingAlignment.align
(@NonNull Collection<T> agents, @Nullable org.apache.commons.collections4.Predicate<T> filter, @NonNull AlignmentOutcomeClosure<T> closure, double targetShare) maxResamplingAttempts
defaults to-1
.void
ResamplingAlignment.align
(@NonNull Collection<T> agents, @Nullable org.apache.commons.collections4.Predicate<T> filter, @NonNull AlignmentOutcomeClosure<T> closure, double targetShare, int maxResamplingAttempts) Align share of population by resampling.void
ResamplingAlignment.align
(@NonNull Collection<T> agents, @Nullable org.apache.commons.collections4.Predicate<T> filter, @NonNull AlignmentOutcomeClosure<T> closure, int targetNumber) maxResamplingAttempts
defaults to-1
.void
ResamplingAlignment.align
(@NonNull Collection<T> agents, @Nullable org.apache.commons.collections4.Predicate<T> filter, @NonNull AlignmentOutcomeClosure<T> closure, int targetNumber, int maxResamplingAttempts) Align absolute number of population by weighted resampling.void
ResamplingAlignment.doAlignment
(@NonNull List<T> list, @NonNull AlignmentOutcomeClosure<T> closure, double targetNumber, int maxResamplingAttempts) The main alignment method.