|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openscience.cdk.qsar.descriptors.molecular.WeightedPathDescriptor
@TestClass(value="org.openscience.cdk.qsar.descriptors.molecular.WeightedPathDescriptorTest") public class WeightedPathDescriptor
Evaluates the weighted path descriptors.
These decsriptors were described by Randic ([Randic, M. , On molecular identification numbers , Journal of Chemical Information and Computer Science, 1984, 24:164-175]) and characterize molecular branching. Five descriptors are calculated, based on the implementation in the ADAPT software package. Note that the descriptor is based on identifying all pahs between pairs of atoms and so is NP-hard. This means that it can take some time for large, complex molecules. The class returns aDoubleArrayResult containing the five
descriptors in the order described below.
| WTPT1 | molecular ID |
| WTPT2 | molecular ID / number of atoms |
| WTPT3 | sum of path lengths starting from heteroatoms |
| WTPT4 | sum of path lengths starting from oxygens |
| WTPT5 | sum of path lengths starting from nitrogens |
This descriptor uses these parameters:
| Name | Default | Description |
| no parameters |
| Constructor Summary | |
|---|---|
WeightedPathDescriptor()
|
|
| Method Summary | |
|---|---|
DescriptorValue |
calculate(IAtomContainer container)
Calculates the weighted path descriptors. |
String[] |
getDescriptorNames()
Returns an array of names for each descriptor value calculated. |
IDescriptorResult |
getDescriptorResultType()
Returns the specific type of the DescriptorResult object. |
String[] |
getParameterNames()
Gets the parameterNames attribute of the WeightedPathDescriptor object. |
Object[] |
getParameters()
Gets the parameters attribute of the WeightedPathDescriptor object. |
Object |
getParameterType(String name)
Gets the parameterType attribute of the WeightedPathDescriptor object. |
DescriptorSpecification |
getSpecification()
Returns a Map which specifies which descriptor
is implemented by this class. |
void |
setParameters(Object[] params)
Sets the parameters attribute of the WeightedPathDescriptor object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeightedPathDescriptor()
| Method Detail |
|---|
@TestMethod(value="testGetSpecification") public DescriptorSpecification getSpecification()
IDescriptorMap which specifies which descriptor
is implemented by this class.
These fields are used in the map:
getSpecification in interface IDescriptor
@TestMethod(value="testSetParameters_arrayObject")
public void setParameters(Object[] params)
throws CDKException
setParameters in interface IDescriptorparams - The new parameters value
CDKException - Description of the ExceptionIDescriptor.getParameters()@TestMethod(value="testGetParameters") public Object[] getParameters()
getParameters in interface IDescriptorIDescriptor.setParameters(java.lang.Object[])@TestMethod(value="testNamesConsistency") public String[] getDescriptorNames()
IDescriptorALOGPDescriptor
the return array will have a single element
getDescriptorNames in interface IDescriptor@TestMethod(value="testGetParameterNames") public String[] getParameterNames()
getParameterNames in interface IDescriptor@TestMethod(value="testGetParameterType_String") public Object getParameterType(String name)
getParameterType in interface IDescriptorname - Description of the Parameter
@TestMethod(value="testCalculate_IAtomContainer") public DescriptorValue calculate(IAtomContainer container)
calculate in interface IMolecularDescriptorcontainer - Parameter is the atom container.
@TestMethod(value="testGetDescriptorResultType") public IDescriptorResult getDescriptorResultType()
DescriptorValue object. Note that the same result
can be achieved by interrogating the DescriptorValue object; this method
allows you to do the same thing, without actually calculating the descriptor.
getDescriptorResultType in interface IMolecularDescriptorIDescriptorResult interface indicating
the actual type of values returned by the descriptor in the DescriptorValue object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||