## org.das2.qds.WeightsDataSet

Provide consistent valid logic to operators by providing a QDataSet with 1.0 where the data is valid, and 0.0 where the data is invalid. VALID_MIN, VALID_MAX and FILL_VALUE properties are used. Note, when FILL_VALUE is not specified, -1e31 is used. This is to support legacy logic. The property FILL_VALUE is no longer set to the fill value used. https://sourceforge.net/p/autoplot/bugs/1458/ SUGGEST_FILL will be set in the properties.

## PROP_SUGGEST_FILL

the fill value from the original dataset. TODO: We really need a justification of this. I suspect this was because you wouldn't know what values would "fit" into the result, for example, you don't want to suggest 1e38 if IDataSet is the implementation. However, I think the fill value used really depends on a number of things and it's difficult to preserve the value safely.

## applyRules

applyRules( QDataSet src, QDataSet v ) → QDataSet

applies the rules from src to dataset v, returning an array of 0 or non-zero.

### Parameters

src - a QDataSet
v - a QDataSet

### Returns:

a QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## capability

capability( java.lang.Class clazz ) → Object

### Parameters

clazz - a java.lang.Class

### Returns:

java.lang.Object
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## length

length( ) → int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]
length( int i ) → int [view source]
length( int i, int j ) → int [view source]
length( int i, int j, int k ) → int [view source]

## property

property( String name ) → Object

### Parameters

name - a String

### Returns:

java.lang.Object
[search for examples] [view on GitHub] [view on old javadoc] [view source]
property( String name, int i ) → Object [view source]

## rank

rank( ) → int

### Returns:

int
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## slice

slice( int i ) → QDataSet

### Parameters

i - an int

### Returns:

org.das2.qds.QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## svalue

svalue( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## toString

toString( ) → String

### Returns:

java.lang.String
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## trim

trim( int start, int end ) → QDataSet

### Parameters

start - an int
end - an int

### Returns:

org.das2.qds.QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## value

value( ) → double

### Returns:

double
[search for examples] [view on GitHub] [view on old javadoc] [view source]
value( int i ) → double [view source]
value( int i0, int i1 ) → double [view source]
value( int i0, int i1, int i2 ) → double [view source]
value( int i0, int i1, int i2, int i3 ) → double [view source]