Use proper static isDifferentiable method

This commit is contained in:
Astrash 2024-10-09 20:56:11 +11:00
parent b4fa635455
commit 4393a16b2f

View File

@ -56,7 +56,7 @@ public class BrownianMotionSampler extends FractalNoiseFunction {
@Override
public boolean isDifferentiable() {
return input instanceof DerivativeNoiseSampler dSampler && dSampler.isDifferentiable();
return DerivativeNoiseSampler.isDifferentiable(input);
}
@Override