public class MLFeatureValue extends NSObject implements NSCopying, NSSecureCoding
MLFeatureValue does not support type conversion in its accessor properties. It can also have a missing or undefined value of a well defined type.
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MLFeatureValue(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
static MLFeatureValue |
alloc() |
static MLFeatureValue |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
NSDictionary<?,? extends NSNumber> |
dictionaryValue()
Populated value if the type is MLFeatureTypeDictionary
|
double |
doubleValue()
Populated value if the type is MLFeatureTypeDouble
|
void |
encodeWithCoder(NSCoder coder) |
static MLFeatureValue |
featureValueWithCGImageConstraintOptionsError(CGImageRef cgImage,
MLImageConstraint constraint,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from CGImage, using the size and type information required by feature description (orientation is assumed to be kCGImagePropertyOrientationUp)
|
static MLFeatureValue |
featureValueWithCGImageOrientationConstraintOptionsError(CGImageRef cgImage,
int orientation,
MLImageConstraint constraint,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from CGImage w/ specified orientation, using the size and type information required by feature description
|
static MLFeatureValue |
featureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(CGImageRef cgImage,
int orientation,
long pixelsWide,
long pixelsHigh,
int pixelFormatType,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from CGImage w/ specified orientation
|
static MLFeatureValue |
featureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(CGImageRef cgImage,
long pixelsWide,
long pixelsHigh,
int pixelFormatType,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from CGImage (orientation is assumed to be kCGImagePropertyOrientationUp)
|
static MLFeatureValue |
featureValueWithDictionaryError(NSDictionary<?,? extends NSNumber> value,
org.moe.natj.general.ptr.Ptr<NSError> error)
For encoding a sparse feature set or for encoding probabilities.
|
static MLFeatureValue |
featureValueWithDouble(double value) |
static MLFeatureValue |
featureValueWithImageAtURLConstraintOptionsError(NSURL url,
MLImageConstraint constraint,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from an image on disk, using a model specified image constraint.
|
static MLFeatureValue |
featureValueWithImageAtURLOrientationConstraintOptionsError(NSURL url,
int orientation,
MLImageConstraint constraint,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from an image on disk using a model specified image constraint.
|
static MLFeatureValue |
featureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(NSURL url,
int orientation,
long pixelsWide,
long pixelsHigh,
int pixelFormatType,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from an image on disk.
|
static MLFeatureValue |
featureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(NSURL url,
long pixelsWide,
long pixelsHigh,
int pixelFormatType,
NSDictionary<java.lang.String,?> options,
org.moe.natj.general.ptr.Ptr<NSError> error)
Construct image feature value from an image on disk.
|
static MLFeatureValue |
featureValueWithInt64(long value)
Hold an object with the specified value
|
static MLFeatureValue |
featureValueWithMultiArray(MLMultiArray value) |
static MLFeatureValue |
featureValueWithPixelBuffer(CVBufferRef value) |
static MLFeatureValue |
featureValueWithSequence(MLSequence sequence) |
static MLFeatureValue |
featureValueWithString(java.lang.String value) |
static long |
hash_static() |
CVBufferRef |
imageBufferValue()
Populated value if the type is MLFeatureTypeImage
|
MLFeatureValue |
init() |
MLFeatureValue |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
long |
int64Value()
Populated value if the type is MLFeatureTypeInt64
|
boolean |
isEqualToFeatureValue(MLFeatureValue value) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isUndefined()
True if the value represents a missing or undefined value
|
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
MLMultiArray |
multiArrayValue()
Populated value if the type is MLFeatureTypeMultiArray
|
static MLFeatureValue |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
MLSequence |
sequenceValue()
Populated value if the type is MLFeatureTypeSequence
|
static void |
setVersion_static(long aVersion) |
java.lang.String |
stringValue()
Populated value if the type is MLFeatureTypeString
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
long |
type()
Type of the value for which the corresponding property below is held
|
static MLFeatureValue |
undefinedFeatureValueWithType(long type)
Represent an undefined value of a specified type
|
static long |
version_static() |
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static MLFeatureValue alloc()
public static MLFeatureValue allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public NSDictionary<?,? extends NSNumber> dictionaryValue()
public double doubleValue()
public static MLFeatureValue featureValueWithDictionaryError(NSDictionary<?,? extends NSNumber> value, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithDouble(double value)
public static MLFeatureValue featureValueWithInt64(long value)
public static MLFeatureValue featureValueWithMultiArray(MLMultiArray value)
public static MLFeatureValue featureValueWithPixelBuffer(CVBufferRef value)
public static MLFeatureValue featureValueWithString(java.lang.String value)
public static long hash_static()
public CVBufferRef imageBufferValue()
public MLFeatureValue init()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public long int64Value()
public boolean isEqualToFeatureValue(MLFeatureValue value)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public boolean isUndefined()
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public MLMultiArray multiArrayValue()
public static MLFeatureValue new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public java.lang.String stringValue()
public static org.moe.natj.objc.Class superclass_static()
public long type()
public static MLFeatureValue undefinedFeatureValueWithType(long type)
public static long version_static()
public static MLFeatureValue featureValueWithCGImageConstraintOptionsError(CGImageRef cgImage, MLImageConstraint constraint, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithCGImageOrientationConstraintOptionsError(CGImageRef cgImage, int orientation, MLImageConstraint constraint, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(CGImageRef cgImage, int orientation, long pixelsWide, long pixelsHigh, int pixelFormatType, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(CGImageRef cgImage, long pixelsWide, long pixelsHigh, int pixelFormatType, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithImageAtURLConstraintOptionsError(NSURL url, MLImageConstraint constraint, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithImageAtURLOrientationConstraintOptionsError(NSURL url, int orientation, MLImageConstraint constraint, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(NSURL url, int orientation, long pixelsWide, long pixelsHigh, int pixelFormatType, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(NSURL url, long pixelsWide, long pixelsHigh, int pixelFormatType, NSDictionary<java.lang.String,?> options, org.moe.natj.general.ptr.Ptr<NSError> error)
public static MLFeatureValue featureValueWithSequence(MLSequence sequence)
public MLSequence sequenceValue()
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic MLFeatureValue initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic static boolean supportsSecureCoding()
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding