Tabnine Logo
DoubleResult
Code IndexAdd Tabnine to your IDE (free)

How to use
DoubleResult
in
org.openscience.cdk.qsar.result

Best Java code snippets using org.openscience.cdk.qsar.result.DoubleResult (Showing top 20 results out of 315)

origin: cdk/cdk

@Test
public void testDoubleValue() {
  DoubleResult result = new DoubleResult(5);
  Assert.assertEquals(5.0, result.doubleValue(), 0.000001);
}
origin: cdk/cdk

  @Test
  public void testLength() {
    DoubleResult result = new DoubleResult(5);
    Assert.assertEquals(1, result.length());
  }
}
origin: cdk/cdk

@Test
public void testToString() {
  DoubleResult result = new DoubleResult(5.0);
  Assert.assertEquals("5.0", result.toString());
}
origin: cdk/cdk

@Test
public void testno1000() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("Clc1cccc(c1)/C=C/[N+](=O)[O-]"); // xlogp training set molecule no1000
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no10000:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(2.809, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 1.0); //at:  16
}
origin: cdk/cdk

@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void testApirinBug1296383() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("CC(=O)OC1=CC=CC=C1C(=O)O"); // aspirin
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("Aspirin:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(1.422, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 0.1); //at:  16
}
origin: org.openscience.cdk/cdk-qsarmolecular

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void testno1782() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("S1C2N(C(=O)C2NC(=O)C(c2ccccc2)C(=O)O)C(C(=O)O)C1(C)C"); // xlogp training set molecule no30
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no1782:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(1.84, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 0.1); //at:  16
}
origin: cdk/cdk

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void testno1596() throws ClassNotFoundException, CDKException, java.lang.Exception {
  // the xlogp program value is 0.44 because of paralleled donor pair correction factor
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("Nc2ccc(S(=O)(=O)c1ccc(N)cc1)cc2"); // xlogp training set molecule no1596
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no1596:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(0.86, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 1.0); //at:  16
}
origin: cdk/cdk

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void testno1429() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("O=C(OC)CNC(=O)c1ccc(N)cc1"); // xlogp training set molecule no1429
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no1429:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(0.31, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 1.0); //at:  16
}
origin: org.openscience.cdk/cdk-qsarmolecular

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void testAprindine() throws ClassNotFoundException, CDKException, java.lang.Exception {
  //even here the amid assignment is very strange
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("CCN(CC)CCCN(C2Cc1ccccc1C2)c3ccccc3"); // xlogp training set molecule Aprindine
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("Aprindine:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(5.03, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 1.0); //at:  16
}
origin: cdk/cdk

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void testno1837() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("O=P(N1CC1)(N2CC2)N3CC3"); // xlogp training set molecule no1837
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no1837:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(-1.19, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 0.1); //at:  16
}
origin: org.openscience.cdk/cdk-qsarmolecular

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void test1844() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  // SMILES is in octet-rule version, PubChem has normalized one
  IAtomContainer mol = sp.parseSmiles("Brc1cc(Cl)c(O[P+]([S-])(OC)OC)cc1Cl"); // xlogp training set molecule 1844
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no1844:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(5.22, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 1.0); //at:  16
}
origin: org.openscience.cdk/cdk-qsarmolecular

/**
 * Returns the specific type of the DescriptorResult object.
 * 
 * The return value from this method really indicates what type of result will
 * be obtained from the {@link org.openscience.cdk.qsar.DescriptorValue} object. Note that the same result
 * can be achieved by interrogating the {@link org.openscience.cdk.qsar.DescriptorValue} object; this method
 * allows you to do the same thing, without actually calculating the descriptor.
 *
 * @return an object that implements the {@link org.openscience.cdk.qsar.result.IDescriptorResult} interface indicating
 *         the actual type of values returned by the descriptor in the {@link org.openscience.cdk.qsar.DescriptorValue} object
 */
@Override
public IDescriptorResult getDescriptorResultType() {
  return new DoubleResult(0.0);
}
origin: cdk/cdk

@Test
public void test1810() throws ClassNotFoundException, CDKException, java.lang.Exception {
  Object[] params = {new Boolean(true), new Boolean(false)};
  descriptor.setParameters(params);
  SmilesParser sp = new SmilesParser(DefaultChemObjectBuilder.getInstance());
  IAtomContainer mol = sp.parseSmiles("Clc1ccc2Sc3ccccc3N(CCCN3CCN(C)CC3)c2c1"); // xlogp training set molecule 1810
  assertAtomTypesPerceived(mol);
  addExplicitHydrogens(mol);
  //logger.debug("no1810:"+((DoubleResult)descriptor.calculate(mol).getValue()).doubleValue()+"\n");
  Assert.assertEquals(4.56, ((DoubleResult) descriptor.calculate(mol).getValue()).doubleValue(), 1.0); //at:  16
}
org.openscience.cdk.qsar.resultDoubleResult

Most used methods

  • doubleValue
  • <init>
  • length
  • toString

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Path (java.nio.file)
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now