Class MPSMatrixRandomDistributionDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class MPSMatrixRandomDistributionDescriptor
    extends NSObject
    implements NSCopying
    MPSMatrixRandomDistributionDescriptor [@dependency] This depends on Metal.framework Decribes properties of a distribution of random values.
    • Constructor Detail

      • MPSMatrixRandomDistributionDescriptor

        protected MPSMatrixRandomDistributionDescriptor​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultDistributionDescriptor

        public static MPSMatrixRandomDistributionDescriptor defaultDistributionDescriptor()
        Make a descriptor for a default distribution.
        Returns:
        A valid MPSMatrixRandomDistribution object or nil, if failure.
      • description_static

        public static java.lang.String description_static()
      • distributionType

        public long distributionType()
        [@property] distributionType The type of distribution.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • maximum

        public float maximum()
        [@property] maximum For distributions of values bounded above, this value describes the maximum.
      • mean

        public float mean()
        [@property] mean The value to use for distributions described by their mean.
      • minimum

        public float minimum()
        [@property] minimum For distributions of values bounded below, this value describes the minimum.
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setDistributionType

        public void setDistributionType​(long value)
        [@property] distributionType The type of distribution.
      • setMaximum

        public void setMaximum​(float value)
        [@property] maximum For distributions of values bounded above, this value describes the maximum.
      • setMean

        public void setMean​(float value)
        [@property] mean The value to use for distributions described by their mean.
      • setMinimum

        public void setMinimum​(float value)
        [@property] minimum For distributions of values bounded below, this value describes the minimum.
      • setStandardDeviation

        public void setStandardDeviation​(float value)
        [@property] standardDeviation The value to use for distributions described by their standardDeviation.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • standardDeviation

        public float standardDeviation()
        [@property] standardDeviation The value to use for distributions described by their standardDeviation.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • uniformDistributionDescriptorWithMinimumMaximum

        public static MPSMatrixRandomDistributionDescriptor uniformDistributionDescriptorWithMinimumMaximum​(float minimum,
                                                                                                            float maximum)
        Make a descriptor for a uniform distribution of floating point values in the range [minimum, maximum).
        Parameters:
        minimum - The lower bound of the range.
        maximum - The upper bound of the range.
        Returns:
        A valid MPSMatrixRandomDistribution object or nil, if failure.
      • version_static

        public static long version_static()
      • normalDistributionDescriptorWithMeanStandardDeviation

        public static MPSMatrixRandomDistributionDescriptor normalDistributionDescriptorWithMeanStandardDeviation​(float mean,
                                                                                                                  float standardDeviation)
        Make a descriptor for a normal distribution of floating point values.
        Parameters:
        mean - The mean of the distribution
        standardDeviation - The standard deviation of the distribution.
        Returns:
        A valid MPSMatrixRandomDistribution object or nil if failure.
      • normalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum

        public static MPSMatrixRandomDistributionDescriptor normalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum​(float mean,
                                                                                                                                float standardDeviation,
                                                                                                                                float minimum,
                                                                                                                                float maximum)
        Make a descriptor for a truncated normal distribution of floating point values.
        Parameters:
        mean - The mean of the distribution
        standardDeviation - The standard deviation of the distribution.
        minimum - The lower bound of the distribution
        maximum - The upper bound of the distribution
        Returns:
        A valid MPSMatrixRandomDistribution object or nil if failure.