arrayfire-0.7.0.0: Haskell bindings to the ArrayFire general-purpose GPU library
CopyrightDavid Johnson (c) 2019-2020
LicenseBSD 3
MaintainerDavid Johnson <djohnson.m@gmail.com>
StabilityExperimental
PortabilityGHC
Safe HaskellSafe-Inferred
LanguageHaskell2010

ArrayFire.Features

Description

Functions for constructing and querying Features

>>> createFeatures 10
Synopsis

Documentation

createFeatures :: Int -> Features Source #

Construct Features

>>> features = createFeatures 10

retainFeatures :: Features -> Features Source #

Retain Features

>>> features = retainFeatures (createFeatures 10)

getFeaturesNum :: Features -> Int Source #

Get number of Features

link

>>> getFeaturesNum (createFeatures 10)
10

getFeaturesXPos :: Features -> Array a Source #

Get Feature X-position

>>> getFeaturesXPos (createFeatures 10)
ArrayFire Array
[10 1 1 1]
    0.0000
    1.8750
    0.0000
    2.3750
    0.0000
    2.5938
    0.0000
    2.0000
    0.0000
    2.4375

getFeaturesYPos :: Features -> Array a Source #

Get Feature Y-position

>>> getFeaturesYPos (createFeatures 10)
ArrayFire Array
[10 1 1 1]
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan

getFeaturesScore :: Features -> Array a Source #

Get Feature Score

>>> getFeaturesScore (createFeatures 10)
ArrayFire Array
[10 1 1 1]
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan

getFeaturesOrientation :: Features -> Array a Source #

Get Feature orientation

>>> getFeaturesOrientation (createFeatures 10)
ArrayFire Array
[10 1 1 1]
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan

getFeaturesSize :: Features -> Array a Source #

Get Feature size

>>> getFeaturesSize (createFeatures 10)
ArrayFire Array
[10 1 1 1]
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan
       nan