java.lang.Object
de.grogra.ray2.metropolis.strategy.MutationStrategy
de.grogra.ray2.metropolis.strategy.LensPerturbationStrat
- All Implemented Interfaces:
MetropolisStrategy
-
Field Summary
Modifier and TypeFieldDescriptionfloat
int
int
int
int
int
int
int
int
Fields inherited from class de.grogra.ray2.metropolis.strategy.MutationStrategy
abbortCode, antialiser, BSDF_WAS_ZERO, CALCULATION_ERROR, CANVAS_WASNT_HIT, complTracer, condition, eyePath, EYEPATH_DEPTH, eyePathDepth, ilist, lightPath, LIGHTPATH_DEPTH, lightPathDepth, MAXVAL, MIN_WEIGHT, mutatedPath, NO_CHANGES_HAPPENED, NO_VALID_COMBINEDPATH, NOT_IMPLEMENTED_YET, NOT_VISIBLE, PATH_SPECTRA_WERE_TOO_WEAK, rnd, sig, srcPath, SUCCESSFUL_MUTATIONRUN, tmpEnv, tmpLine, tmpPoint1, tmpPoint2, tmpRayList, tmpSpec1, tmpSpec2, tmpSpec3, tmpVec1, tmpVec2, tracer, TRACINGGOAL_WASNT_REACHED, tracingMediator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongenerateNewStartLine
(boolean isLightRay) void
initialize
(double[] values) float
mutatePath
(CombinedPathValues actualPath, CombinedPathValues mutatedPath) int
registerError
(int error) void
resetAll()
Methods inherited from class de.grogra.ray2.metropolis.strategy.MutationStrategy
calculateAcceptanceProbality, calculateQ, getAcceptanceAbbortDescription, getAddiationPathLength, getAddProbability, getAddVertice, getCombinedBSDF, getDeleteProbability, getDeleteVertice, getDeletionPathLength, getDescription, getI_0, hitsCanvas, isVisble, luminance, pathChanged, traceEyeSubPath, traceLightSubPath
-
Field Details
-
kd
public int kd -
ka
public int ka -
l
public int l -
m
public int m -
l_
public int l_ -
m_
public int m_ -
real_m_
public int real_m_ -
real_l_
public int real_l_ -
acceptance
public float acceptance
-
-
Constructor Details
-
LensPerturbationStrat
-
-
Method Details
-
initialize
public void initialize(double[] values) - Specified by:
initialize
in classMutationStrategy
-
resetAll
public void resetAll()- Specified by:
resetAll
in interfaceMetropolisStrategy
- Specified by:
resetAll
in classMutationStrategy
-
mutatePath
- Specified by:
mutatePath
in interfaceMetropolisStrategy
- Overrides:
mutatePath
in classMutationStrategy
-
generateNewStartLine
- Overrides:
generateNewStartLine
in classMutationStrategy
-
registerError
public int registerError(int error) - Overrides:
registerError
in classMutationStrategy
-
getStatistics
- Specified by:
getStatistics
in interfaceMetropolisStrategy
- Specified by:
getStatistics
in classMutationStrategy
-