Codota Logo
Parameter
Code IndexAdd Codota to your IDE (free)

How to use
Parameter
in
org.qsardb.model

Best Java code snippets using org.qsardb.model.Parameter (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: org.qsardb/evaluation

static
public DecimalFormat getFormat(Parameter<?, ?> parameter){
  if(parameter.hasCargo(ValuesCargo.class)){
    ValuesCargo valuesCargo = parameter.getCargo(ValuesCargo.class);
    try {
      Map<String, BigDecimal> values = parseValues(valuesCargo.loadStringMap());
      ScaleFrequencyMap map = ScaleFrequencyMap.sample(values.values());
      int minCount = Math.max(3, values.size() / 10);
      return new DecimalFormat(map.getPattern(minCount), new DecimalFormatSymbols(Locale.US));
    } catch(Exception e){
      logger.log(Level.WARNING, "Parameter \'" + parameter.getId() + "\' does not specify decimal format", e);
    }
  }
  return null;
}
origin: org.qsardb.cargo/map

@Override
protected String valueName(){
  return getContainer().getName();
}
origin: org.qsardb.conversion/table

@Override
public void beginMapping() throws IOException {
  C parameter = getParameter();
  this.references = new LinkedHashMap<String, String>();
  if(parameter.hasCargo(ReferencesCargo.class)){
    ReferencesCargo cargo = parameter.getCargo(ReferencesCargo.class);
    this.references.putAll(cargo.loadReferences());
  }
}
origin: org.qsardb.conversion/table

private Map<String, String> loadValues(Parameter<?,?> p) {
  try {
    return p.getCargo(ValuesCargo.class).loadStringMap();
  } catch (IOException e) {
    return new HashMap<String, String>();
  }
}
origin: org.qsardb.conversion/table

private void loadParameters(Collection<? extends Parameter> params) {
  for (Parameter<?, ?> p: params) {
    Column column = new Column(p.getId());
    columns.add(column);
    Map<String, String> values = loadValues(p);
    for (Row row: rows) {
      String v = values.get(row.getId());
      row.getValues().put(column, makeCell(v));
    }
  }
}
origin: org.qsardb.conversion/table

@Override
public void endMapping() throws IOException {
  C parameter = getParameter();
  ReferencesCargo cargo = parameter.getOrAddCargo(ReferencesCargo.class);
  cargo.storeReferences(this.references);
  this.references.clear();
  this.references = null;
}
org.qsardb.modelParameter

Most used methods

  • getCargo
  • getId
  • hasCargo
  • getName
  • getOrAddCargo

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Table (org.hibernate.mapping)
    A relational table
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now