MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / hashCode

Method hashCode

src/org/opensourcephysics/display/Histogram.java:272–274  ·  view source on GitHub ↗

Computes the hash code (bin number) for the specified value @param value @return the hash code

(double value)

Source from the content-addressed store, hash-verified

270 * @return the hash code
271 */
272 public int hashCode(double value) {
273 return (int) (Math.floor((value - binOffset) / binWidth));
274 }
275
276 /**
277 * Append a value with number of occurrences to the Histogram.

Callers 14

HistogramClass · 0.95
appendMethod · 0.95
getIDMethod · 0.45
ArrayPanelClass · 0.45
DatasetClass · 0.45
DatasetManagerClass · 0.45
ComplexDatasetClass · 0.45
DataAdapterClass · 0.45
FourierAnalysisClass · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected