Examples of DoubleType


Examples of liquibase.database.structure.type.DoubleType

   * liquibase.database.typeconversion.core.AbstractTypeConverter#getDoubleType
   * ()
   */
  @Override
  public DoubleType getDoubleType() {
    return new DoubleType("DOUBLE PRECISION");
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

    }

    if ( DoubleType.class.isAssignableFrom( type.getClass() ) )
    {
      final DoubleArray array = new DoubleArray( numElements( dims ) );
      final ArrayImgAWTScreenImage< DoubleType, DoubleArray > container = new DoubleAWTScreenImage( new DoubleType( array ), array, dims );
      container.setLinkedType( new DoubleType( container ) );
      return ( ArrayImgAWTScreenImage ) container;
    }

    throw new IllegalArgumentException( "Can't find AWTScreenImage for type " + type.toString() + "!" );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

public final class RealDoubleSamplerConverter< R extends RealType< R > > implements SamplerConverter< R, DoubleType >
{
  @Override
  public DoubleType convert( final Sampler< ? extends R > sampler )
  {
    return new DoubleType( new RealConvertingDoubleAccess< R >( sampler ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

   * Create an {@link ArrayImg}<{@link DoubleType}, {@link DoubleArray}>.
   */
  @SuppressWarnings( "unchecked" )
  final static public ArrayImg< DoubleType, DoubleArray > doubles( final long... dim )
  {
    return ( ArrayImg< DoubleType, DoubleArray > ) new ArrayImgFactory< DoubleType >().create( dim, new DoubleType() );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

   */
  final public static ArrayImg< DoubleType, DoubleArray > doubles( final double[] array, final long... dim )
  {
    final DoubleArray access = new DoubleArray( array );
    final ArrayImg< DoubleType, DoubleArray > img = new ArrayImg< DoubleType, DoubleArray >( access, dim, new Fraction() );
    final DoubleType t = new DoubleType( img )
    img.setLinkedType( t );
    return img;
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

   * Create an {@link PlanarImg}<{@link DoubleType}, {@link DoubleArray}>.
   */
  @SuppressWarnings( "unchecked" )
  final static public PlanarImg< DoubleType, DoubleArray > doubles( final long... dim )
  {
    return ( PlanarImg< DoubleType, DoubleArray > ) new PlanarImgFactory< DoubleType >().create( dim, new DoubleType() );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

      final double[] position = new double[ n ];
      for ( int d = 0; d < n; ++d )
        position[ d ] = rnd.nextDouble();

      final RealPoint realPoint = new RealPoint( position );
      final DoubleType sample = new DoubleType( rnd.nextDouble() );

      realPointList.add( realPoint );
      sampleList.add( sample );
      realPointSampleList.add( realPoint, sample );
    }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

  @Before
  public void init()
  {
    for ( int i = 0; i < samples.length; ++i )
      realPointSampleList.add( new RealPoint( coordinates[ i ] ), new DoubleType( samples[ i ] ) );
  }
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

    { 5, 4, 3 },
    { 2, 1, 0 }
    } };
    for ( int i = 0; i < offsets.length; i++ )
    {
      final Img< DoubleType > img = new ArrayImgFactory< DoubleType >().create( new long[] { 3, 3 }, new DoubleType() );
      ImgUtil.copy( input, offsets[ i ], strides[ i ], img );
      final RandomAccess< DoubleType > ra = img.randomAccess();
      final long[] location = new long[ 2 ];
      for ( int x = 0; x < 3; x++ )
      {
View Full Code Here

Examples of net.imglib2.type.numeric.real.DoubleType

    final double[][] expected = {
        { 0, 1, 2, 3, 4, 5, 6, 7, 8 },
        { 0, 3, 6, 1, 4, 7, 2, 5, 8 },
        { 8, 7, 6, 5, 4, 3, 2, 1, 0 } };
    final double[] output = new double[ 9 ];
    final Img< DoubleType > img = new ArrayImgFactory< DoubleType >().create( new long[] { 3, 3 }, new DoubleType() );
    final RandomAccess< DoubleType > ra = img.randomAccess();
    final long[] location = new long[ 2 ];
    for ( int x = 0; x < 3; x++ )
    {
      location[ 0 ] = x;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.