iitb.Model
Class FeatureImpl

java.lang.Object
  extended byiitb.Model.FeatureImpl
All Implemented Interfaces:
Feature

public class FeatureImpl
extends java.lang.Object
implements Feature

Author:
Sunita Sarawagi

Field Summary
 int id
           
 java.lang.String strId
           
 java.lang.String type
           
 float val
           
 int yend
           
 int ystart
           
 
Constructor Summary
FeatureImpl()
           
 
Method Summary
 void copy(FeatureImpl featureToReturn)
           
 int index()
           
 java.lang.String toString()
           
 float value()
          can be -1 if the feature is a state, rather than an edge feature
 int y()
          the index of this feature from 0..numFeatures-1.
 int yprev()
          has to be a label index from 0..numLabels-1
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public java.lang.String type

strId

public java.lang.String strId

id

public int id

ystart

public int ystart

yend

public int yend

val

public float val
Constructor Detail

FeatureImpl

public FeatureImpl()
Method Detail

copy

public void copy(FeatureImpl featureToReturn)

index

public int index()
Specified by:
index in interface Feature

y

public int y()
Description copied from interface: Feature
the index of this feature from 0..numFeatures-1.

Specified by:
y in interface Feature

yprev

public int yprev()
Description copied from interface: Feature
has to be a label index from 0..numLabels-1

Specified by:
yprev in interface Feature

value

public float value()
Description copied from interface: Feature
can be -1 if the feature is a state, rather than an edge feature

Specified by:
value in interface Feature

toString

public java.lang.String toString()


Submit a bug or feature.